internationalization

Interface Builder Localization HowTo

a 夏天 提交于 2019-12-05 22:23:21
I was digging into Apple Developers' Docs to understand how localization/internationalization of apps should be done and I wanted to understand how Interface Builder helps you managing multiple NIB files for multiple languages... the docs point me to the "localization" section within the Interface Builder user Guide , but I can not find it.. should I find it within the Xcode 4 docs? Can someone point me a document that shows you how to implement localization within the Interface Builder/XCode? Where is the "Interface Builder User Guide"? Thanks in advance. PS: should I start implementing my

i18n translation with CakePHP 3

怎甘沉沦 提交于 2019-12-05 21:35:59
Context I want to translate my app in french and english. I followed exactly the CakePHP 3 documentation but it is not working. What I did so far For my development, I'm using a vagrant box to easily get up and running with CakePHP 3. This box is named vagrant-chef /config/bootstrap.php I modified the line 100 to use french as the default language. ini_set('intl.default_locale', 'fr_CA'); /src/Controller/PagesController I added this method to the default PagesController public function initialize() { I18n::locale('en'); } /src/Template/Pages/home.ctp I added these 2 lines <?php echo __('Hey,

How to obtain the languageid in a Liferay theme with velocity

泄露秘密 提交于 2019-12-05 21:02:39
For the current theme im creating there are multiple images that require to change based on the current language. For example if the user is visiting the page in english we would load image_ languageid .jpg How can you replace languageid with the actual id of the language in velocity & liferay? Is this a good technique or is there a nicer one? vinzcelavi Try adding this line in init_custom.vm or portal_normal.vm #set ($language_id = $themeDisplay.getLanguageId()) 来源: https://stackoverflow.com/questions/8254603/how-to-obtain-the-languageid-in-a-liferay-theme-with-velocity

angular-i18n select syntax in attribute

烈酒焚心 提交于 2019-12-05 21:01:20
I was trying to use the i18n SELECT syntax to translate a placeholder for an input field: <input placeholder="{userRole, admin{you are an admin} other {you are a user}}" i18n-placeholder="MYAPP.PLACEHOLDER|my placeholder"> this results to the following xlf file entry: <trans-unit id="85f60a0a03b3b4e189252fc0157dd403e806bbcc" datatype="html"> <source>{userRole, admin{you are an admin} other {you are a user}}</source> <context-group purpose="location"> <context context-type="sourcefile">path/to/my/file.component.ts</context> <context context-type="linenumber">4</context> </context-group> <note

Localization/Internationalization for Polymer 1.0

╄→尐↘猪︶ㄣ 提交于 2019-12-05 19:58:27
I'm looking into solutions for polymer 1.0 and yet I find it hard to understand how this works. Found this https://github.com/Polymer/i18next-element which is unfortunately not even ready yet. Meanwhile I cannot figure out how to use i18next.I'm trying to combine all the info i can find, followed https://github.com/tabacha/javascript-i18n-example/blob/master/i18next/examle.html with any combinations from http://i18next.com/pages/sample.html and made sure to take a look at http://japhr.blogspot.gr/2014/02/getting-started-with-i18next-and-polymer.html . The thing is, I seem to get wrong

Is this a good solution for localisation of pluggable components?

亡梦爱人 提交于 2019-12-05 19:04:49
I asked a question previously which had only a single answer. I've had some time to play around with this now and have a plan, but want some feedback on if it is a good idea. The problem: I want a component which has a name (invariant, used to identify the component) to have its name localised in the application that is consuming it, without polluting the model of the component with a DisplayName attribute. The component may exist in a separate dll and be dynamically loaded at runtime. my feeling is that the component dll should be responsible for providing the localised name (this seems like

Emoji/International Keyboard

谁都会走 提交于 2019-12-05 18:56:08
I would like to create my own emoticon keyboard in iOS 5. Would this replace the now standard emoji keyboard? In my search for answers, i havent found much on how to create/install the keyboard. From my understanding the process would be along these lines: -create array or something of the sort (build of a keyboard template file?) - have an app that installs this keyboard under international keyboards - then just enable the keyboard to be available in all apps. thanks, in advance for any help. any resources would be greatly appreciated as well Stenerson You've probably already found your

How to use python_dateutil 1.5 'parse' function to work with unicode?

旧城冷巷雨未停 提交于 2019-12-05 18:30:23
问题 I need that Python_dateutil 1.5 parse() work with Unicode month names. If use fuzzy=True it skips month name and produce result with month = 1 When I use it without fuzzy parameter I get the next exception: from dateutil.parser import parserinfo, parser, parse class myparserinfo(parserinfo): MONTHS = parserinfo.MONTHS[:] MONTHS[3] = (u"Foo", u"Foo", u"Июнь") >>> test = unicode('8th of Июнь', 'utf-8') >>> tester = parse(test, parserinfo=myparserinfo()) Traceback (most recent call last): File "

angular-translate: Translate dynamic value

耗尽温柔 提交于 2019-12-05 18:25:34
We're using angular-translate to translate our app. Regular translations with dynamic number values are no problems, like 'LIVES_LEFT': 'You have {{ lives }} left.' used like <p>{{ 'LIVES_LEFT' | translate:player }}</p> The problem comes when the dynamic value is a string that itself needs to be translated, like 'YOU_HAVE_A_CHILD': 'You have a {{ gender }} that is {{ age }} years old.' Used like <p>{{ 'YOU_HAVE_A_CHILD' | translate:child }}</p> gender in this case should end up resolving to 'boy', or 'girl' if the selected language is English, and for example 'Junge', or 'Mädchen', if the

How to implement internationalization in java

独自空忆成欢 提交于 2019-12-05 18:19:34
I have a class called Info , and i have a bunch of static String variables described in it. public class Info{ public static stringOne= "Hello"; public static stringTwo = "world"; } and i'm hoping to access these variables as Info.stringTwo from other classes. 1.) I need to know if this is java-Internationalization that i have applied here ? (I have all the messages that i will display in the application assigned in this class. And, i am hoping to have different languages support to the app as well) Have a look at Resource bundle A copy paste from the documentation: When your program needs a