internationalization

Drupal 7 Internationalization / Multi language : redirect to default language if translation missing for article

核能气质少年 提交于 2019-12-12 05:26:41
问题 I'm new to the Internationalization for Drupal 7 and here is what I'm trying to do. Let's say i have 3 languages for my site. English, French and Dutch. What I want is when an article is not translated in a specific language, to see the English version of the article. I could write my article in English, then use the neutral language to make sure the article appears in every language, but then I can't translate the article in just French or just Dutch. Example: I created an article in English

Semi dynamic constants in GWT

情到浓时终转凉″ 提交于 2019-12-12 05:02:17
问题 For GWT we use static constants to provide internationalization for our users. However, this makes reviewing and editing the texts a tedious process, because if one of our stakeholders has comments, it has to be compiled and deployed to our demo environment again. The solution would be to have some kind of semi dynamic text constants. What I would like, is that I can compile to some kind of "review mode", and when I do that, the constants are read from a file from the server or database. If

Pylons application Internationalization

﹥>﹥吖頭↗ 提交于 2019-12-12 04:45:45
问题 What the best way to make pylons application internationalist? 回答1: A Google search finds these docs. 回答2: PyICU and I highly recommend Babel. Also if you need SEO you should read this: http://my.opera.com/WebApplications/blog/2008/03/17/search-engine-friendly If want more info (you can start using babel in five minutes), read the pylons book its free: http://pylonsbook.com/en/1.1/internationalization-and-localization.html 来源: https://stackoverflow.com/questions/2341387/pylons-application

Magnolia CMS internationalization of 404 pages?

送分小仙女□ 提交于 2019-12-12 04:24:39
问题 I have setup a custom 404 page, as described on "How to change the default 404 error page with custom page from pages app". Like the rest of my pages created with Magnolia CMS' "page app", that custom 404 error page is multilingual. However, when redirected to my custom 404 error page, I am always shown the default language. Even if the page I am trying to reach was expected to be in another language. For instance: with " English " as defined default language, I am navigating the German

My OSX app cannot detect RTL language

梦想的初衷 提交于 2019-12-12 04:14:23
问题 I am developing an OSX app with very minimum UI. For internalization/localization, I used a 3rd party library to replace all my text with appropriate language (I detect the language using [NSLocale preferredLanguages]). The problem is my NSAlert always displays its content (including text, button layout...) in Left-to-Right direction, even when I switch the system language to, says, Arabic. From my research it would seem that NSAlert should automatically switch the direction correctly (though

Using converter with Translate i18n in xamarin xaml

孤街浪徒 提交于 2019-12-12 04:08:45
问题 I want to add ":" at the end of string. public class StringToStringColonConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return value + ":"; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return null; } } If I do this it works <Label Text="{Binding DocumentLabel, Converter={converter:StringToStringColonConverter}}" /> This way does not work <Label Text="{i18n

Serving a language file depending on language preference settings

你说的曾经没有我的故事 提交于 2019-12-12 04:06:36
问题 In my ember application I am supporting different languages. I am doing it this way: This is part of the index.html : <script src="scripts/vendor/ember.js"></script> <script src="scripts/vendor/ember-i18n.js"></script> ... <script>window.mynamespace = {};</script> <script src="scripts/languages/en.js"></script> <script src="scripts/ember_application.js"></script> In my languages/es.js I configure a translations object as expected by ember-i18n: var lang = { key1 : 'Translation1', ... };

SonarQube - No translations: NS_ERROR_DOM_QUOTA_REACHED

为君一笑 提交于 2019-12-12 03:59:29
问题 we are using SonarQube 5.1.2 on a domain like sonarqube.companyname.com . Because of a firefox bug (https://bugzilla.mozilla.org/show_bug.cgi?id=1064466) the local storage quota isn't based on the subdomain. As we are using many applications on domains with the suffix .companyname.com which also uses localStorage I got the following error in the JavaScript console: NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached And the result looks like this: http://i.stack.imgur.com

How to update translation cakephp but not main table

限于喜欢 提交于 2019-12-12 03:55:41
问题 I have added translate behaviour to a model, the model comes here App::uses('AppModel', 'Model'); class Category extends AppModel { public $hasMany = "Product"; public $validate = array( 'name' => array( 'rule' => 'notEmpty' ) ); public $actsAs = array( 'Translate' => array( 'name','folder','show' ) ); public $name = "Category"; public $translateModel = 'KeyTranslate'; } And heres the controller for updating the model public function admin_edit_translate($id,$locale) { $this->Category->locale

Localizing apps for non-standard locales

别说谁变了你拦得住时间么 提交于 2019-12-12 03:29:32
问题 I am writing an app which should support a language which is not in the list of available (40?) languages on the device, but the region format is. I want to localize the name of days as well as "yesterday...". The problem is, that days (Monday,...) are fetched using NSLocale and therefore work on any device, but words like "yesterday" have to be localised to a language amongst the 40 or so. Even though XCode lets me localize for the wanted region, the device uses the standard language, in my