-
Notifications
You must be signed in to change notification settings - Fork 148
Add FAQs pages for App Translation and for Remote Control #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2ed52db
wip commit to save progress
marionbarker 4e253da
Merge branch 'main' into xlate_and_rc
marionbarker 3d04dfb
Merge branch 'main' into xlate_and_rc
marionbarker feaca04
add translation and remote control faqs
marionbarker 7d9dfc2
fix typos
marionbarker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,189 @@ | ||
| ## Overview | ||
|
|
||
| * If you want to view translated pages of `LoopDocs`, please click on [Translation](../translate.md). | ||
|
|
||
| * If you want to view your app on your phone in a different language, instructions are found at [Translated App on the Phone](#translated-app-on-the-phone). | ||
|
|
||
| * If you want to help provide translations for everyone to use on their phone with their app (*Loop*, *Trio*, or *iAPS*), please click on [Code Translation](#code-translation). | ||
|
|
||
| ## Translated App on the Phone | ||
|
|
||
| You can select the language you want displayed for any given app in your phone settings. | ||
|
|
||
| If you have only one language on your phone, you will not see choices under the app settings. Click on the link below (for Apple instructions) to add language options to your phone. | ||
|
|
||
| * [Add more than one language to your phone](https://support.apple.com/en-us/109358) | ||
|
|
||
| Once your phone is configured to have more than one language, then the steps below should work. | ||
|
|
||
| * Tap on phone Settings | ||
| * Scroll down and tap on Apps | ||
| * Choose your app, e.g., `Loop` | ||
| * Scroll down to Preferred Language | ||
| * Choose the language you prefer | ||
|
|
||
| {width="600"} | ||
| {align="center"} | ||
|
|
||
| If a given phrase in the app does not have a translation string in what is called the String Catalog, then the app displays English. If you see an English phrase and you want to help yourself, and others, you can become a translator. | ||
|
|
||
| For the *Loop* app and the submodules (Pumps, CGM and Services) associated with the *Loop* app, the [*lokalise*](https://app.lokalise.com/projects) website is used. You must be signed up with the *Loop* project to be able to see *Loop* translations at that site. | ||
|
|
||
| !!! note "Want to Sign Up to Translate?" | ||
| To volunteer to translate, join [Loop zulipchat](https://loop.zulipchat.com/) and send a direct message to Marion Barker with your email address and the language(s) you can translate. | ||
|
|
||
|
|
||
| ## Code Translation | ||
|
|
||
| Localization (strings translated to the selected language in the app) makes use of volunteers who input translations in a special web app. Their work is then dowloaded and imported into the code used by the *Loop* app and its submodules (repositories on *GitHub*). | ||
|
|
||
| If you notice *Loop* app messages in English even though you selected a specific language, and you can help translate it, please volunteer. | ||
|
|
||
| Translations for Loop are performed by volunteers at [*lokalise*](https://app.lokalise.com/projects). | ||
|
|
||
| To volunteer, join [Loop zulipchat](https://loop.zulipchat.com/) and send a direct message to Marion Barker with your email address and the language(s) you can translate. You will get an invitation to join the project. You do not need to start a new project, start a free trial or sign up for anything special; just join the project you are invited to. | ||
|
|
||
| > If you are using the *Trio* or *iAPS* app instead of the *Loop* app, you can still assist with Pump, CGM and Tidepool module localization through *Loop* *lokalise*. Some repositories from *Loop* are used by [*Trio* and *iAPS*](#what-about-other-ios-apps). | ||
|
|
||
| ### Initial Screen on *lokalise* | ||
|
|
||
| When you log in to *lokalise*, you will see a screen similar to the screenshot below. Tap on the *Loop* icon, highlighted in the graphic with a red rectangle, to start translating. | ||
|
|
||
| {width="600"} | ||
| {align="center"} | ||
|
|
||
| After tapping on the *Loop* icon, you see the general translation tasks. (Your screen may look different.) | ||
|
|
||
| On the left are `keys` with the English language showing. On the right is the translation for that `key` in the language you selected. Each `key` has one or more words. The statistics list the total number of keys and the total number of words. | ||
|
|
||
| {width="600"} | ||
| {align="center"} | ||
|
|
||
| ### How to Find Strings to Translate | ||
|
|
||
| You can search for: | ||
|
|
||
| * strings that are [not translated](#not-translated), which show up as Empty | ||
| * strings in a particular [submodule](#select-a-submodule) (for example - the Pump or CGM that you use) | ||
| * strings where the [English version was copied](#matches-source) to the translated field | ||
| * strings where you disagree with the translation | ||
| * some strings may have been automatically translated | ||
| * some translations may have a typographical error | ||
|
|
||
| ### Not Translated | ||
|
|
||
| Strings that have not been translated can be selected by tapping on Filter and choosing Untranslated. An example graphic is shown before choosing untranslated keys. First tap on Filter than tap on Untranslated. | ||
|
|
||
| {width="900"} | ||
| {align="center"} | ||
|
|
||
| ### Enter a Translation | ||
|
|
||
| After tapping on an item that is empty or you want to modify, type your translation into the box on the right, where you see the words "enter translation here" in the graphic below. | ||
|
|
||
| {width="900"} | ||
| {align="center"} | ||
|
|
||
| Notice the filename where that key is stored is indicated when you examine the details of a key. In the graphic above, the file `Loop/Loop/Localizable.xcstrings` is indicated. | ||
|
|
||
| The area under the key has a comment. This is something added in the code to explain the use of the key. | ||
|
|
||
| If a `key` does not have a translation in a given language, then when running the app, the English version is automatically provided. Do **not** tap on `Insert source`. | ||
|
|
||
| > The only reason to use `Insert source` would be if that `key` should always be identical to the English version and you want to avoid having that `key` show up when looking for untranslated keys. | ||
|
|
||
| ### Select a Submodule | ||
|
|
||
| Suppose you know that you want to modify translations for a particular submodule (CGM, Pump or Service module). You can choose context in *lokalise*. | ||
|
|
||
| * Tap on Filter | ||
| * Tap on Context | ||
| * Choose the submodule file | ||
| * some submodules have multiple string catalogs (*.xcstrings) | ||
| * some items are old enough to have a few of the older string format (*.strings) | ||
| * You can ignore any file that includes "Info.plist" | ||
| * those strings do not need to be translated and the keys should be configured to be hidden from translators | ||
|
|
||
| The screenshot below is configured for someone translating simplified Chinese for the DanaKit pump. | ||
|
|
||
| {width="1024"} | ||
| {align="center"} | ||
|
|
||
| #### Submodule Table for Multiple Apps | ||
|
|
||
| These submodules are used by the *Loop*, *Trio* and *iAPS* apps. | ||
|
|
||
| | Type | <div style="width:145px"></div> Name | Files | | ||
| |:-:|:--|:--| | ||
| | CGM | `CGMBLEKit` | CGMBLEKit/CGMBLEKit/Localizable.xcstrings<br>CGMBLEKit/CGMBLEKitUI/Localizable.xcstrings | | ||
| | CGM | `G7SensorKit` | G7SensorKit/G7SensorKit/Localizable.xcstrings<br>G7SensorKit/G7SensorKitUI/Localizable.xcstrings | | ||
| | CGM | `LibreTransmitter` | LibreTransmitter/LibreTransmitter/Localizable.xcstrings<br>LibreTransmitter/LibreTransmitterUI/Localizable.xcstrings | | ||
| | CGM | `Dexcom Share` | dexcom-share-client-swift/ShareClient/Localizable.xcstrings<br>dexcom-share-client-swift/ShareClientUI/Localizable.xcstrings | | ||
| | CGM | `NightscoutRemoteCGM` | NightscoutRemoteCGM/NightscoutRemoteCGM/Localizable.xcstrings | | ||
| | Pump | `DanaKit` | DanaKit/Localization/Localizable.xcstrings | | ||
| | Pump | `MedtrumKit` | MedtrumKit/Localization/Localizable.xcstrings | | ||
| | Pump | `OmniBLE` | OmniBLE/Localizable.xcstrings<br>OmniBLE/OmniBLE/Localizable.xcstrings | | ||
| | Pump | `RileyLinkKit` | RileyLinkKit/RileyLink/Localizable.xcstrings<br>RileyLinkKit/RileyLink/LoopKit.xcstrings<br>RileyLinkKit/RileyLinkBLEKit/Localizable.xcstrings<br>RileyLinkKit/RileyLinkKitUI/Localizable.xcstrings | | ||
| | Pump | `MinimedKit` | MinimedKit/MinimedKit/Resources/Localizable.xcstrings<br>MinimedKit/MinimedKitUI/Resources/Localizable.xcstrings<br>MinimedKit/MinimedKitUI/Resources/mul.lproj/MinimedPumpManager.xcstrings| | ||
| | Pump | `OmniKit` | OmniKit/Localizable.xcstrings<br>OmniKit/OmniKit/Resources/Localizable.xcstrings<br>OmniKit/OmniKitUI/Resources/Localizable.xcstrings | | ||
| | Misc | `LoopKit` | LoopKit/LoopKit/Resources/Localizable.xcstrings<br>LoopKit/LoopKitUI/Resources/Localizable.xcstrings<br>LoopKit/LoopKitUI/Resources/mul.lproj/InsulinKit.xcstrings<br>LoopKit/LoopKitUI/Resources/mul.lproj/LegacyInsulinDeliveryTableViewController.xcstrings<br>LoopKit/MockKit/Resources/Localizable.xcstrings<br>LoopKit/MockKitUI/Resources/Localizable.xcstrings | | ||
| | Service | `TidepoolService` | TidepoolService/TidepoolServiceKit/Localizable.xcstrings<br>TidepoolService/TidepoolServiceKitUI/Localizable.xcstrings | | ||
|
|
||
| ### Matches Source | ||
|
|
||
| Some of the String Catalogs have had the English version inserted in the translation field. This was done inadvertently. To find these instances in the language you are translating, set up a custom filter. | ||
|
|
||
| First click on Filter, then Customize (see red highlights in graphic below) | ||
|
|
||
| {width="900"} | ||
| {align="center"} | ||
|
|
||
| The next screen allows you to choose `Translation` in one drop-down and then `matches source` in the adjacent drop-down. | ||
|
|
||
| {width="900"} | ||
| {align="center"} | ||
|
|
||
| You can hit Apply or Save and Apply and give it a name so you can select the Name next time. | ||
|
|
||
| The screenshot below is after creating and naming a custom filter called `Translation Matches Source`. | ||
|
|
||
| {width="900"} | ||
| {align="center"} | ||
|
|
||
|
|
||
| ### Find a String | ||
|
|
||
| If you observe a string you want to modify, you can type it in directly. The text you type in the search box can be all or part of a string, and in English or the language you are translating. | ||
|
|
||
| {width="900"} | ||
| {align="center"} | ||
|
|
||
| - - - | ||
|
|
||
| ## What About Other iOS Apps | ||
|
|
||
| The *Trio* and the *iAPS* apps use submodules for CGM, Pump and Service features originally developed for the *Loop* app. New CGM and Pump modules are coming soon or already available. These are being configured for use with all these iOS apps. | ||
|
|
||
| * The shared code originally developed for the *Loop* app resides in the *GitHub* *LoopKit* organization and is under the control of the *LoopKit* owners | ||
| * The *Trio* app has always used forks for these repositories so get their localizations for the CGM, Pump and Service modules from *lokalise* | ||
| * The *iAPS* app initially used copies of the code - not connected to the *LoopKit* repositories - and configured their own crowdin site for *iAPS* localization | ||
| * However, as improvements to the submodules evolved at *LoopKit*, the updates needed to be hand-edited and added to the *iAPS* copies | ||
| * In late 2025, *iAPS* started the transition to using forks from *LoopKit* instead of copies | ||
| * Some of the *iAPS* translations for CGM, Pump and Service submodules were imported into *lokalise* at this time | ||
|
|
||
| The bottom line is | ||
|
|
||
| * Submodule translations are handled at [*lokalise*](https://app.lokalise.com/) | ||
| * *Trio* translations are handled at [crowdin for *Trio*](https://crowdin.com/project/trio/invite/public?h=48e1a77abd1611860f475c1ce17540112591650&show_welcome) | ||
| * *iAPS* translations are handled at [crowdin for *iAPS*](https://crowdin.com/project/iaps) | ||
|
|
||
| You can use the *Trio* or *iAPS* discord server to volunteer to translate using *lokalise* by sending a direct message to Marion Barker if you are not a member of zulipchat. | ||
|
|
||
| - - - | ||
|
|
||
| ## Adding Languages | ||
|
|
||
| We can add languages if a translator commits to take on that task. | ||
|
|
||
| At lokalise, the language must be added first before translators have access to that language. Send a DM to Marion Barker with your request for a new language. | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| ## Remote Caregivers | ||
|
|
||
| If you are a caregiver and want to issue remote commands to the *Loop* app, you have 3 options. All of these require you to configure a [Nightscout site](../nightscout/overview.md){: target="_blank" } for that person. | ||
|
|
||
| Once the Nightscout site is configured, you can remotely monitor that person. | ||
|
|
||
| In the documentation below, the OTP is a one-time password that changes every 30 seconds. | ||
|
|
||
| You can add remote control to: | ||
|
|
||
| * modify the Override (Custom Preset) | ||
| * add Carbohydrates (requires OTP) | ||
| * issue a Bolus (requires OTP) | ||
|
|
||
| You have 3 ways in which to do this. The first two require additions to the config vars on your Nightscout site and then you send commands through the Nightscout site either directly (option 1) or using the *LoopCaregiver* app (option 2) to the Looper's phone. The third option (*LoopFollow*) uses direct Apple Push Notifications (APNS) from your phone to the Looper's phone. With that method, the Nightscout site is used for monitoring, not issuing commands. | ||
|
|
||
| All of these methods require APNS keys from someone with an Apple Developers License and that must be the same developer who built to *Loop* app. | ||
|
|
||
| 1. Use the [Careportal at the Nightscout URL](../nightscout/remote-commands.md){: target="_blank" } | ||
| * If the Caregiver uses an Android phone, this is your only option | ||
| * The Nightscout config vars must include APNS keys and the developer ID for the developer who built the Loop app | ||
| 2. Build the [*LoopCaregiver* app](../nightscout/loop-caregiver.md){: target="_blank" } on the caregiver's iPhone to issue command through the Nightscout site | ||
| * The Caregiver must have an iPhone with iOS 16 or newer | ||
| * The Nightscout config vars must include APNS keys and the developer ID for the developer who built the Loop app | ||
| 3. Build the [*LoopFollow* app](https://loopfollowdocs.org/remote/remote-control-loop/) on the caregiver's phone to directly issue APNS to the Looper's phone, this can be faster and more reliable | ||
| * The Caregiver must have an iOS phone with iOS 16 or newer | ||
marionbarker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| * The Nightscout site monitors the Looper's phone | ||
| * No additions to the Nightscout config vars are required - this makes it easier when you use Nightscout as a Service | ||
|
|
||
| ## Customization for Longer OTP Window | ||
|
|
||
| May people find the OTP expires too soon when their Looper is on a different network from the Caregiver. | ||
|
|
||
| Consider adding the option that allows Loop to accept a remote command that arrives within a 15 minute window. | ||
|
|
||
| Please review this carefully before deciding to use this. | ||
|
|
||
| * [Increase Remote Window to 15 minutes](https://www.loopandlearn.org/loop-features-in-development/#remote-window) | ||
|
|
||
| This customization is for the *Loop* app so works with all three remote methods mentioned in the previous section. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.