-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
31 deletions.
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/khjxiaogu/factorio/composer/Messages.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.khjxiaogu.factorio.composer; | ||
|
||
import java.util.MissingResourceException; | ||
import java.util.ResourceBundle; | ||
|
||
public class Messages { | ||
private static final String BUNDLE_NAME = "com.khjxiaogu.factorio.composer.messages"; //$NON-NLS-1$ | ||
|
||
private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME); | ||
|
||
private Messages() { | ||
} | ||
|
||
public static String getString(String key) { | ||
try { | ||
return RESOURCE_BUNDLE.getString(key); | ||
} catch (MissingResourceException e) { | ||
return '!' + key + '!'; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/khjxiaogu/factorio/composer/messages.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FactorioComposer.author=made by khjxiaogu | ||
FactorioComposer.copy_bp=Copy Blueprint code | ||
FactorioComposer.file=midi file | ||
FactorioComposer.fromfile=Compose file to blueprint | ||
FactorioComposer.fromfolder=Compose folder to blueprint book | ||
FactorioComposer.selectfile=Select midi file | ||
FactorioComposer.selectfolder=Select midi folder | ||
FactorioComposer.tick=tick | ||
FactorioComposer.title=Factorio Composer by khjxiaogu | ||
FactorioComposer.viewgithub=<html><a href="">View code via github</html> |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/khjxiaogu/factorio/composer/messages_zh.properties
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FactorioComposer.author=khj\u5C0F\u9AA8\u5236\u4F5C | ||
FactorioComposer.copy_bp=\u590D\u5236\u84DD\u56FE\u4EE3\u7801 | ||
FactorioComposer.file=midi\u6587\u4EF6 | ||
FactorioComposer.fromfile=\u5BFC\u5165\u6587\u4EF6\u5230\u84DD\u56FE | ||
FactorioComposer.fromfolder=\u5BFC\u5165\u6587\u4EF6\u5939\u5230\u84DD\u56FE\u7C3F | ||
FactorioComposer.selectfile=\u9009\u62E9midi\u6587\u4EF6 | ||
FactorioComposer.selectfolder=\u9009\u62E9midi\u6587\u4EF6\u5939 | ||
FactorioComposer.tick=ticks | ||
FactorioComposer.title=\u5F02\u661F\u5DE5\u5382\u97F3\u4E50\u751F\u6210\u5668by khj\u5C0F\u9AA8 | ||
FactorioComposer.viewgithub=<html><a href="">\u5728github\u4E0A\u67E5\u770B\u4EE3\u7801</html> |