multilingual

Most efficient approach for multilingual PHP website

巧了我就是萌 提交于 2019-11-28 15:32:26
问题 I am working on a large multilingual website and I am considering different approaches for making it multilingual. The possible alternatives I can think of are: The Gettext functions with generation of .po files One MySQL table with the translations and a unique string ID for each text PHP-files with arrays containing the different translations with unique string IDs As far as I have understood the Gettext functions should be most efficient, but my requirement is that it should be possible to

Japanese standard web fonts

╄→гoц情女王★ 提交于 2019-11-28 15:08:59
I am working on a japanese website and have a hard time finding a font which looks good in japanese. I was surprised that so few fonts seem to exist for japanese. My team has contacted several web font providers without much success. Only one company could offer a web font for japanese but it was 35 megabytes which is far to big for the clients to download to their browsers. For Latin letters there are a few fonts which one can be quite confident almost all users have, like Arial, Verdana, TNR, Georgia and so on. What fonts equal these in japan? akky Web-font for Japanese, though there are few

Can I use custom language / country code combinations in hreflang?

一个人想着一个人 提交于 2019-11-28 14:24:37
I'm internationalizing a large website in 14 languages. I have found that some of the language/countries we want to target do not have lang-cc entries in various lists, e.g. dot net cultures, language-codes-and-iso-country-codes-for-html5. As an example, Danish is widely spoken in Greenland. We are translating our site in to Danish for users in Denmark. It therefore makes sense to offer the translated content to Danish speakers in Greenland, however the lang/country code for this is not listed in resources we have found (especially as Google Greenland exists - google.gl). So, can we safely use

Multilingual text sorting in Perl, on Windows, using locale

帅比萌擦擦* 提交于 2019-11-28 11:34:52
I am building a piece of software for sorting book indexes in different languages. It uses Perl, and keys off of the locale. I am developing it on Unix, but it needs to be portable to Windows. Should this work in principle, or by relying on locale, am I barking up the wrong tree? Bottom line, Windows is really where I need this to work, but I am more comfortable developing in my UNIX environment. Assuming that your starting point is Unicode, because you have been very careful to decode all incoming data no matter what its native encoding might be, then it is easy to use to the Unicode::Collate

How getResources().getString() works android

强颜欢笑 提交于 2019-11-28 11:33:56
For e.g there is app which provides multi-language support, in my activity/UI, I call getResources().getString(R.string.hello) which exist in strings.xml,such that values\strings.xml values-ru\strings.xml Now when calling getResources().getString(R.string.hello) and need to access string based on system locale, so will one get strings from values\strings.xml OR values-ru\strings.xml ? OR does one need to change my app locale based on system locale (keep app locale same as system locale) and then retrieve the value from getString() , something suggested in below links get-string-from-default

Internationalization with Angular 4

依然范特西╮ 提交于 2019-11-28 11:27:24
I need to Add multiple language support for my Angular 4 Application.I need to know the best approach to achieve this. You can use ngx-translate which is the standard library for internationalization in Angular 2+ You can import the library and create a set of json files which contains the translations and put it inside the assets folder. Then you can refer it in the HTML. say for example. en.json has, "guest.first-name": "first Name", where first one is the key and second is the value to be displayed . and you can refer in the html as, <input [label]="'guest.first-name' | translate" type=

PHP multilanguage - how to switch languages?

冷暖自知 提交于 2019-11-28 11:02:52
问题 Im trying to create a multilanguage website.I used this http://www.phpsimplicity.com/tips.php?id=15 tutorial and it works fine. But I don't understand how to switch languages and save it in session. I have the menu: <div id="language"> <ul> <li> <a title="LT" href="">LT</a></li> | <li> <a title="LV" href="">LV</a></li> | <li><a title="EN" href="">EN</a></li>| <li><a title="RU" href="">RU</a></li> </ul> </div> For example, user pressed "EN" and how do I write this choice in session using href

Best way to handle URLs in a multilingual site in ASP.net

两盒软妹~` 提交于 2019-11-28 08:44:39
I need to do a multilingual website, with urls like www.domain.com/en/home.aspx for english www.domain.com/es/home.aspx for spanish In the past, I would set up two virtual directories in IIS, and then detect the URL in global.aspx and change the language according to the URL Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) Dim lang As String If HttpContext.Current.Request.Path.Contains("/en/") Then lang = "en" Else lang = "es" End If Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(lang) Thread.CurrentThread.CurrentCulture = CultureInfo

How to setup CodeIgniter for a truly multi language website?

做~自己de王妃 提交于 2019-11-28 08:29:42
I need to setup CodeIgniter to be a truly multi language website. I've searched but I can't find a solution. I've tested this approach but it is not working. ( http://codeigniter.com/wiki/Category%3AInternationalization%3A%3AInternationalization_Views_i18n /) Can someone give me a clue about what setup to use to get a truly multi language environment in CodeIgniter? Best Regards, P.T. https://github.com/EllisLab/CodeIgniter/wiki/CodeIgniter-2.1-internationalization-i18n If you implement this, you URLs will contain the language code. You can save your language parts in the language directory.

Wordpress: Use method=“post” for multiple language selection

泪湿孤枕 提交于 2019-11-28 07:43:31
问题 I'm building a website that has dual languages with two flags as an entry page. I'm planning on using <form method="post"> around the flags so the user can select the language they want. Then on the following pages I want to use something like: <?php if( $_POST['language']=='uk' ){ echo $uk; }elseif( $_POST['language']=='french' ){ echo $french;} ?> So on clicking the flag, they have selected the language they want. Will that only work on the next page after they have clicked the flag or can