Created
May 10, 2012 08:41
-
-
Save chsh/2651921 to your computer and use it in GitHub Desktop.
RubyMotion Localization sample.
This file contains 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
class AppDelegate | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
alert = UIAlertView.new | |
alert.message = t('start') | |
alert.show | |
true | |
end | |
def t(key) | |
NSBundle.mainBundle.localizedStringForKey(key, value:nil, table:nil) | |
end | |
end |
This file contains 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
CFBundleName = "English Version"; | |
CFBundleDisplayName = "English"; |
This file contains 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
"start" = "Please tap me!"; |
This file contains 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
CFBundleName = "日本語バージョン"; | |
CFBundleDisplayName = "日本語"; |
This file contains 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
"start" = "タップしてね"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is that '-' means folder '/' ?
resources/ja.lproj/Localizable.strings ?