microsoft / microsoft/LocalizedStringKit
What is the use-case for this library compared to Xcode - Export for Localization and import?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 293
- Forks
- 12
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I am trying to better understand the use-case for this library compared to the standard localisation workflow in Xcode.
In the readme you say:
LocalizedStringKit is a tool that lets you write English strings directly into your source code and generate the required .strings files later. No more manually managing string keys or remembering to add them to the strings file later. All you do is change:
label.text = NSLocalizedString("TERMS_SCREEN_MAIN_HEADER", "Comment here...")
...
If you use NSLocalizedString, you can write English strings directly into the source code as the key parameter (in the same way as with the replacement function in this library). Then to generate the strings files for the other languages, in Xcode,
- Select the project in the sidebar
- Select, menu item Editor -> Export for Localization
- Add the target translations to the resulting XLIFF
- Then import again with Editor -> Import Localisation
Result: Xcode will create the strings files and add them to the project
Furthermore, If you alternatively use keys such as NSLocalizedString("my.string.a", ..), you can export the development language, in the same way as described above, and import to generate the strings file for the development language.
Is this library for when you don't use Xcode, or don't want to use the xliff-based workflow (for some reason)?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Überprüfe die Beschreibung im README zusammen mit dem im Issue beschriebenen Workflow Xcode Editor → Export for Localization und Import Localization. Kläre den vorgesehenen Anwendungsfall der Bibliothek und ob sie auf Projekte abzielt, die Xcode oder den XLIFF-Workflow nicht verwenden; abgeschlossen, wenn das README diese Ansätze klar vergleicht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- documentation, localization
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100