internationalization

How to do extreme branding/internationalization in .NET

旧城冷巷雨未停 提交于 2019-12-05 05:59:37
We are planning a pretty big application. -We want to internationalize our application for 30 countries. -In most countries 1 to 6 different brands are available. -Each combination of a certain locale like 'de' and brand like 'XXX' might occur multiple times therefore we need another identifier to get something unique: "locale_brand_siteorigin" Therefore we have .resx file like: Configurations. de.burgerking.px10 .resx The bold printed is the unique identifier. During runtime we create a: var rm = new ResourceManager("MyNamespace.Configurations.UniqueIdentifier",Assembly.GetExecuting());

localization in ios swift. how can i change application language at run time

微笑、不失礼 提交于 2019-12-05 05:51:27
问题 i am creating app in ios swift. now i want to make app in dual language so from editor menu i just export and import for localization. its create two file for me. now i want to put two button on first page of my app. and when user press button 1 i want to load english language. and if user press button 2 i want to load turkish language. so how can i do this in swift? 回答1: Instead of using NSLocalizedString method to localize your App, load the localizable strings according to the language

Rails: changing locale and keeping page parameters

拟墨画扇 提交于 2019-12-05 05:02:54
I have a navbar with links to different languages: <%= link_to t('header.english'), locale: "en" %> The problem is when user tries to switch language on a page which contains additional parameters in the url. Changing locale at this point reloads the page and strips all the additional parameters. So, how do I pass all the parameters from the current page to the locale switch link? For example, when /page/new?param1=1&param2=2 is open, and user switches the locale, /page/new?locale=en is opened, and both additional parameters are stripped away from the url. Chris Salzberg EDIT: THIS IS NOT A

Localizable assets in Android

微笑、不失礼 提交于 2019-12-05 04:28:08
问题 I just found a nice tutorial that will help me implement an easy user guide system in my application, as I will be able to draw it with any plain old HTML editor. My question is simple: since all res ources are localizable, I can easily translate my application into new languages. What about assets ? Is there an automatic localization mechanism? I don't think so. How do I retrieve system locale in order to construct a localized URL when loading the help page's HTML file? Is there some call to

Django missing translation of some strings. Any idea why?

删除回忆录丶 提交于 2019-12-05 04:11:24
I have a medium sized Django project, (running on AppEngine if it makes any difference), and have all the strings living in .po files like they should. I'm seeing strange behavior where certain strings just don't translate. They show up in the .po file when I run make_messages, with the correct file locations marked where my {% trans %} tags are. The translations are in place and look correct compared to other strings on either side of them. But when I display the page in question, about 1/4 of the strings simply don't translate. Digging into the relevant generated .mo file, I don't see either

Charset.defaultCharset() get different result under JDK1.7 and JDK 1.6

风格不统一 提交于 2019-12-05 04:01:39
I am testing my application's i18n compatibility. I have a English version of Windows 7 which mean the system's display language is English. And I set the system locale as Chinese for non-unicode application. My application encountered problems when exporting Html files with Chinese character under jdk1.6, but works fine when running under jdk1.7. I debugged it and found the direct reason was that Charset.defaultCharset() returned different values. Under jdk1.7 Charset.defaultCharset() returned GBK which is the charset for chinese. Under jdk1.6 Charset.defaultCharset() returned window_1252

Insert array into database in a single row

独自空忆成欢 提交于 2019-12-05 03:45:57
I wonder if this would be doable ? To insert an array into one field in the database. For instance I have a title, I want to have that title with only one id, but it's going to be bilingually used on the website. It feels a bit unnecessary to make another table to have their global ids and then another table with the actual titles linked to the table with the global id. I just want to have something like this ID TITLE 1 Array("english title", "nederlandse titel"); I'm using PHP/MSYQL, so if it would be doable could you please explain in these languages. Oh yeah I figured that I could format it

How to display text in Serbian,Russian and Arabic(JSF 2.0)

核能气质少年 提交于 2019-12-05 03:42:59
问题 On the internet i found a book called JSF 2.0 cookbook. I rode chapter 7(Internationalization) and i found it pretty simple, i tried everything there by my self, and all worked fine besides the use of characters from languages such as Russian, Arabic, Serbian... The book says this: A common problem when using Arabic, Chinese, Russian characters (and so on) sounds like this: "I can type such characters in an inputText component, but when I submit the form, the inserted text is displayed in

Angular4: Locale for a user

北慕城南 提交于 2019-12-05 03:25:00
I want to have a LoginForm and after this user enters the application - either with German or English usage. As far as I understand I can set in the app.module.ts something like import { LOCALE_ID } from '@angular/core'; providers: [{ provide: LOCALE_ID, useValue: 'de-DE' },...] But that is at the startup and not when the LoginForm was already displayed :-/ Is there a way to change the locale for the whole app? (Not only for a specific component!) - Would be great if the translations could be changed as well on the fly. Any hints how to achieve? I only found the above way to deal with. LeO I

Angular 5 - date - language

情到浓时终转凉″ 提交于 2019-12-05 03:23:30
I use this expression in my Angular 5 application: {{ viewDate | date:'MMM' }} The month abbreviation is shown in English. How do I switch the output to German? [SOLVED] https://angular.io/api/core/LOCALE_ID As you pointed in your edit out already you have to define a locale within your app. The documentation for the DatePipe states Formats a date according to locale rules. The pipe has to be used like so {{ date_expression | date[:format[:timezone[:locale]]] }} As you can see, the pipe accepts a format , timezone and locale parameter (besides the actual date that is to be parsed). Reading