localization

Convert English numbers to Persian for ggplot

99封情书 提交于 2021-02-19 08:32:30
问题 I am working on a data visualization project using ggplot . I have my original data in English: world_ecommerce <- data.frame( year = factor(c(2014, 2015, 2016, 2017, 2018)), score = c(1336, 1548, 1845, 2304, 2842) ) I want to visualize it as a bar chart and show all numbers in persian. My original Bar chart is: ggplot( world_ecommerce, aes(x = year, y = score, label = score), fill = "#56c7da" ) + geom_bar( stat = "identity", fill = "#56c7da", position = position_dodge(), width = 0.5, size =

Run a Qt app in a different language?

為{幸葍}努か 提交于 2021-02-19 02:18:12
问题 I'm working on a Qt application that used to be a KDE application. In the old days, I just had to use some syntax like: KDELANG=de ./my_app That ran my_app in German, and only my_app. It might not have been KDELANG, but it was some environment variable like that. I've spent a ridiculous amount of time trying to coax this answer out of Google, and I give up. There must be some way to run a Qt (4.5 if that matters) application in some other language without switching over my entire locale to

Run a Qt app in a different language?

▼魔方 西西 提交于 2021-02-19 02:18:03
问题 I'm working on a Qt application that used to be a KDE application. In the old days, I just had to use some syntax like: KDELANG=de ./my_app That ran my_app in German, and only my_app. It might not have been KDELANG, but it was some environment variable like that. I've spent a ridiculous amount of time trying to coax this answer out of Google, and I give up. There must be some way to run a Qt (4.5 if that matters) application in some other language without switching over my entire locale to

Run a Qt app in a different language?

假如想象 提交于 2021-02-19 02:17:25
问题 I'm working on a Qt application that used to be a KDE application. In the old days, I just had to use some syntax like: KDELANG=de ./my_app That ran my_app in German, and only my_app. It might not have been KDELANG, but it was some environment variable like that. I've spent a ridiculous amount of time trying to coax this answer out of Google, and I give up. There must be some way to run a Qt (4.5 if that matters) application in some other language without switching over my entire locale to

How to change localization language without restart application swift4?

风格不统一 提交于 2021-02-19 01:28:26
问题 Hello iam trying to change localization string file with out restart the application , after change the language i need to restart the application to see new language this is how i am changing the application language but i need to restart application to see change using this library https://github.com/marmelroy/Localize-Swift i need to set all label values programmatically which is headache i don't want to this like this way var selectedLanguage:Languages let preferredLanguage : String =

Localising a UILabel with attributed string from a Storyboard

佐手、 提交于 2021-02-18 20:39:51
问题 I have a UILabel with text set as "attributed" in a storyboard. When I generate the Main.strings file for translating into a different language the text for this label does not appear. I tried to add manually an entry into the Main.strings file by copying the object id. I tried setting the "text" property and the "attributedText" property but when I run the app the translated string is not used. So, how do I localise an UILabel set as "attributed" on a storyboard? 回答1: I ended up solving this

ms-access localization and default boolean values

十年热恋 提交于 2021-02-18 16:44:51
问题 Our access client generates on the fly SQL inserts, update and delete instructions to be sent on a MS-SQL Server. Most users have the runtime version of Access 2007, and a few use the complete MS-Access version, 2003 or 2007. This morning one of our new users abroad, using a french/complete version of Access 2003, was unable to update data containing boolean fields. It appeared that these fields are, in the french version of Access, populated with "Vrai/Faux" instead of "True/False" values.

Angular 6 - How to extract translation from typescript

别来无恙 提交于 2021-02-18 08:34:09
问题 I am using Angular 6 and I have setup handling of translations according to the documentation found here: https://angular.io/guide/i18n. The problem is that the documentation does not explain how to get translations using typescript. There is a similar question here: Can I use Angular i18n to translate string literals in typescript code But i cannot use that answer since it relies on ngx-translate which will be deprecated once Angular catches up, see https://github.com/ngx-translate/core

What’s the equivalent to String.localizedStringWithFormat(_:_:) for SwiftUI's LocalizedStringKey?

本秂侑毒 提交于 2021-02-18 05:24:25
问题 What’s the equivalent to String.localizedStringWithFormat(_:_:) in SwiftUI? I know LocalizedStringKey.init(:) can make use of string interpolation, but as I understand it this requires localizable string keys to be parameterized in the .strings/.stringsdict files. This is different to how localized string keys are currently defined in the app I'm working on. Given these localizable strings in Localizable.strings: "HELLO_WORLD" = "Hello, world!"; "HELLO_WORLD_PARAMETERIZED" = "Hello, %@!";

How to localize app name in cordova for iOS?

非 Y 不嫁゛ 提交于 2021-02-11 15:01:34
问题 I am looking for a solution to localize my app's name in: English (EN) Chinese (Simplified) zh-Hans Chinese (Traditional) zh-Hant I am using build.phonegap to build my both apps so I cannot modify the platform code but instead it has to be from either some config on config.xml or using cordova hooks or any other solution. So far I found solution for android using hooks but it will not work for iOS. Thanks 回答1: For iOS you can do code in config.xml file. <platform name="ios"> <edit-config