is there a way to set the text of a Label (Toybox.WatchUi.Text) with a localized string programmatically at runtime? I know how to set a localized string for a label from within the user interface XML files and was wondering if this is also possible from within a Monkey C file, e.g. label.setText("@Strings.localization_key")?
How to set localized texts for Label programmatically?
995 views Asked by cmdaltent At
1
There are 1 answers
Related Questions in LOCALIZATION
- Difficulty with hosting Multilingual Wagtail site on alwaysdata
- Android - Localized text search using english alphabet
- Format datetime in java based on locale
- MaterialApp doesn't rebuild after changing locale
- Text overflow in Flutter localization with easy_localization package
- Translate output of function in Swift
- How to handle decimal input values in a globalized MVC app
- Some users facing issues changing app language in Android app
- Does anyone have any idea why my right-to-left (RTL) layout isn't taking effect immediately?
- Delphi 7 application not loading STRINGTABLE resources on Windows 10
- Auto add resources key/value in resx files
- Implementing Multi-language Translation in React Router DOM with i18n for Outlook Add-ins
- Swift Sort string array with german localization
- Account language setting ignored in Wagtail admin for localized model names
- Updating comments with references in .po translation
Related Questions in GARMIN
- How to obtain HRV from Garmin ANT+ on Android
- Custom android notification icon not showing on Garmin watch
- Conversion FIT file at CSV file
- Need help improving or altering routing algorithm to be faster, in Garmin ConnectIQ
- Garmin API User Exchange Tokens Python
- Building google calendar api app for my garmin watch, but google doens't have support for MonkeyC language
- Open garmin img file or convert to a shape file
- Garmin MonkeyC Communications.makeWebRequest stopped working when moved to SDK 4.2.4
- Connect IQ/Monkey C: Getting from menu and submenu to main screen with user inputs
- Extract wind direction/speed from Garmin marine equipment
- How to make sense of the raw data CSV from the Garmin VIRB 360 Camera?
- Handle buttons when switch to new view in monkey c Garmin
- Connect IQ Garmin Simulator test getting location by enableLocationEvents function
- Garmin and Monkey C "Cannot find symbol ':setText'..."
- How to drill down into a nested object in Monkey C? (connect-iq)
Related Questions in CONNECTIQ
- Need help improving or altering routing algorithm to be faster, in Garmin ConnectIQ
- Connect IQ Garmin Simulator test getting location by enableLocationEvents function
- How to drill down into a nested object in Monkey C? (connect-iq)
- I wana have my application to fetch a html web page but i keep getting -400 whatever i try monkey c / garmin connect
- How to get live heart rate from Garmin vivoactive 3 in iOS app?
- Real IOS device & Garmin watch stimulator
- Connection with iOS application and Garmin Watch
- BLE communication between a Garmin wearable and an iOS device
- Add exercise with sets to a session
- How to re-open a Connect IQ app from a background process?
- makeWebRequest in background after an OAuth with Connect IQ
- Garmin-Watchface: How to show Heartrate?
- What does the BLE-status code "-402" mean?
- Why is Android Mobile SDK connect.iq broken?
- garmin connectciq-sdk ommand monkeyc not found in openjdk apline docker container
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I discovered the Github Account of Garmin where they also provide some example code of Applications and I found the solution in one of the projects.
It's simply
Rez.Strings.<string_id>with the ID and the respective translation in one of the string resource files.However, it does not seem to work to concatenate the localized String with another string and put the concatenation as text in the label. Obviously, the internal String-ID is then displayed rather than the actual string. This behavior occurred for me with the Connect IQ SDK 1.2.5.