Benutzer-Werkzeuge

Webseiten-Werkzeuge


iphone:localisation

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
iphone:localisation [2013/01/29 14:49] – [tl;dr] mroiphone:localisation [2013/01/29 23:50] (aktuell) – [Interlude: assert(Localisation != Translation)] mro
Zeile 11: Zeile 11:
 == Problems == Problems
  
-conflicting goals:+**conflicting** goals:
  
 # not in focus of english speaking developer/tester # not in focus of english speaking developer/tester
Zeile 19: Zeile 19:
 # hard to verify: fringe screens, bilingual devs # hard to verify: fringe screens, bilingual devs
  
-== Interlude: assert(Localisation != Translation)+== Interlude: Localisation != Translation
  
-# Localisation: //prepare for// translation (''NSLocalizedString'', **dev** task) +# Localisation: **prepare for** translation (''NSLocalizedString'', **dev** task) 
-# Translation: //do// translation (''Localizable.strings'', **non-dev** task)+# Translation: **do** translation (''Localizable.strings'', **non-dev** task)
 == Not in focus of english speaking developer/tester == Not in focus of english speaking developer/tester
  
Zeile 28: Zeile 28:
 # annoying ''NSLocalizedString(@"foo", @"bar)'' when **developing**, # annoying ''NSLocalizedString(@"foo", @"bar)'' when **developing**,
 # but: expensive to hunt down when **releasing**, # but: expensive to hunt down when **releasing**,
-  # hard to find automatically - many //technical// strings+  # hard to find automatically - many **technical** strings
   # ''NSLocalizedString'' & friends mandatory to leverage ''genstrings''   # ''NSLocalizedString'' & friends mandatory to leverage ''genstrings''
  
Zeile 43: Zeile 43:
 # doesn't **update** but overwrite, # doesn't **update** but overwrite,
 # UTF-16 - not (git) diff friendly, # UTF-16 - not (git) diff friendly,
-# macro ''NSLocalizedString'' doesn'give source file.+# macro ''NSLocalizedString'' doesn'tell source file.
  
-### Solution 1 + 2+=== Solution to 1 + 2
  
-[[https://bitbucket.org/xomodigital/watson/src/64d366c95cdf1fc8f7c09ac6ae13082667363cc7/tools/genstrings_incremental?at=release/foko2013|''tools/genstrings_incremental'']]+''[[https://bitbucket.org/xomodigital/watson/src/64d366c95cdf1fc8f7c09ac6ae13082667363cc7/tools/genstrings_incremental?at=release/foko2013|genstrings_incremental]]''
  
 ------------------ ------------------
Zeile 57: Zeile 57:
 <code objc>/* TBA */ <code objc>/* TBA */
 "TBA" = "TBA";</code> "TBA" = "TBA";</code>
 + 
 or or
  
Zeile 80: Zeile 80:
  
 # **no literals** in xibs, inject text via ''IBOutlet'', # **no literals** in xibs, inject text via ''IBOutlet'',
-# prefer **rendered** text, avoid images, +# prefer **rendered text**, avoid images, 
-# wrap **every** user visible string **whenever** you see one, +# wrap **every** user visible string **whenever** you find one, 
-**always** localise the format string, +# always localise the **format string**
-**always** preserve existing, used translated phrases: [[https://bitbucket.org/xomodigital/watson/src/64d366c95cdf1fc8f7c09ac6ae13082667363cc7/tools/genstrings_incremental?at=release/foko2013|''genstrings_incremental'']].+# always **preserve** existing, used translated phrases: ''[[https://bitbucket.org/xomodigital/watson/src/64d366c95cdf1fc8f7c09ac6ae13082667363cc7/tools/genstrings_incremental?at=release/foko2013|genstrings_incremental]]''.
  
 == Thank you == Thank you
Zeile 94: Zeile 94:
 [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"NSShowNonLocalizableStrings"]; [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"NSShowNonLocalizableStrings"];
 </code> </code>
-* [[https://bitbucket.org/xomodigital/watson/src/64d366c95cdf1fc8f7c09ac6ae13082667363cc7/tools/genstrings_incremental?at=release/foko2013|Bitbucket: genstrings_incremental]]+''[[https://bitbucket.org/xomodigital/watson/src/64d366c95cdf1fc8f7c09ac6ae13082667363cc7/tools/genstrings_incremental?at=release/foko2013|genstrings_incremental]]'' 
 +* [[https://docs.google.com/a/xomodigital.com/document/d/15QdUmJBy-PJbTM-0nm9gvyIKi9Hty9U_GpoY9x9pdF4/view|Google docs]]
iphone/localisation.1359467359.txt.gz · Zuletzt geändert: 2013/01/29 14:49 von mro