Skip to content

Commit

Permalink
Update LA to v1.1
Browse files Browse the repository at this point in the history
now uppercase and lowercase are regarded as the same thing in
"updateLocalization" function of LA.
  • Loading branch information
GWYOG committed May 2, 2016
1 parent 0e1477b commit 8f37ecf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public int functionUpdateLocalization(String fileInput2,String fileInput3,String
while((str = br.readLine()) != null) {
if(str.length()!=0 && str.charAt(0) != '#' && str.indexOf('=')!=-1)
{
str1 = str.substring(0,str.indexOf('='));
str1 = str.substring(0,str.indexOf('=')).toLowerCase();
str2 = str.substring(str.indexOf('=')+1);
hashtable.put(str1,str2);
}
Expand Down Expand Up @@ -337,7 +337,7 @@ public int functionUpdateLocalization(String fileInput2,String fileInput3,String
while((str = br.readLine()) != null) {
if(str.length()!=0 && str.charAt(0) != '#' && str.indexOf('=')!=-1)
{
str1 = str.substring(0,str.indexOf('='));
str1 = str.substring(0,str.indexOf('=')).toLowerCase();
if(hashtable.containsKey(str1))
{
osw.write(str1 + "=" + hashtable.get(str1));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class MainFrame extends JFrame implements ActionListener{

//在构造方法中实现LA所有GUI的布置
public MainFrame(){
super("Localization Assistant v1.0.1");
super("Localization Assistant v1.1");
setSize(480,540);
Container contentPane = this.getContentPane();

Expand Down Expand Up @@ -152,7 +152,7 @@ public MainFrame(){

//Labels
label1_1 = new JLabel();
label1_1.setText("<html><body>作者:JJN(GWYOG)<br/>版本号:v1.0.1<br/>日期:2016/4/28</body></html>");
label1_1.setText("<html><body>作者:JJN(GWYOG)<br/>版本号:v1.1<br/>日期:2016/4/28</body></html>");
label2_1 = new JLabel("待操作的文件:");
label2_2 = new JLabel("输出到的文件:");
label2_3 = new JLabel("待替换的字符串:");
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#LocalizationAssistant v1.1 2016/5/2
The "updateLocalization" function of LA now totally ignores the case-sensitive scenario(e.g. "xxx.xx.x.Copper.name = Copper" and "xxx.xx.x.copper.name = copper" are regarded as the same entry).
release: release LA v1.1

#LocalizationAssistant v1.0.1 2016/4/28
Normalize the names of the classes and variables, appreciating @3TUSK
Clean up the code: remove some useless comments and all the unused imports
Expand Down

0 comments on commit 8f37ecf

Please sign in to comment.