Skip to content

Commit

Permalink
Releasing 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tsitelov committed May 20, 2019
1 parent 4686b06 commit 03911a4
Show file tree
Hide file tree
Showing 40 changed files with 115 additions and 80 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# CHANGELOG

## 2.1 - 2019-05-20

- NEW: support for custom output folder (see `com.devexperts.uilocalizer.outputFolder` option)

## 2.0 - 2018-07-26

- NEW: `uilocalizer-api.jar` published along with `uilocalizer-processor.jar`
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
UI Localizer - a simple annotation processor that makes marked strings to be initialized by values from a localization file.

Copyright (C) 2015 - 2018 Devexperts, LLC
Copyright (C) 2015 - 2019 Devexperts, LLC

This product is developed at Devexperts LLC (http://devexperts.com/).
Licensed under the Mozilla Public License, Version 2.
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ UI Localizer tool is fail-safe. That means if anything of mentioned above is mis
If you use UI Localizer for compilation multiple modules and you use the same property file name you should use the option `com.devexperts.uilocalizer.appendToPropertyFile` set to `true`, properties will be appended to the end of the file, e.g.: `-Acom.devexperts.uilocalizer.appendToPropertyFile=true`. The default value is `false`.
Use this option with caution, don't forget to clean up all template files before compilation with UI Localizer.

You can define a folder where output files could be found. Use the option `com.devexperts.uilocalizer.outputFolder` set to path to a folder, e.g. `-Acom.devexperts.uilocalizer.outputFolder=C:\project\build`.
The folder would be created by the UI Localizer if it is absent.

Language consistency
--------------------
There is a way to store the language properties in one place. This method will guarantee language consistency of your application.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=2.0
version=2.1
inceptionYear=2015
organization=Devexperts, LLC
junitVersion=4.12
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -523,4 +523,4 @@ static boolean isFirstLiteralOfLocalizableField(PsiLiteralExpression literal) {
}
return false;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -73,13 +73,6 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.JCheckBox;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ScrollPaneConstants;
import javax.swing.event.DocumentEvent;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
Expand All @@ -95,6 +88,13 @@
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JCheckBox;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ScrollPaneConstants;
import javax.swing.event.DocumentEvent;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -73,4 +73,4 @@ public void testNonNlsComment() throws Exception{
protected String getTestDataPath() {
return "src/test/testData";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -22,4 +22,4 @@ void foo() {
@Language("abcdefgh")
String s;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -17,4 +17,4 @@ void foo() {
@org.jetbrains.annotations.NonNls StringBuffer buffer = new StringBuffer("text");
buffer = new StringBuffer("text");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -27,4 +27,4 @@ private class SimpleTester{

}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -30,4 +30,4 @@ enum Test2 {
}

private final String myId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -24,4 +24,4 @@ void foo() {

@com.devexperts.uilocalizer.Localizable("some.property.key")
String field3 = "Localized string";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -14,4 +14,4 @@ class Foo {
void foo(String s) {
foo("text");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -23,4 +23,4 @@ public void actionPerformed(final ActionEvent e) {
}
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -20,4 +20,4 @@ void foo() {
v3 = "text";
v4 = "text";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -20,4 +20,4 @@ class Foo {

return new String[] {"text6"};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -24,4 +24,4 @@ static String foo(String s) {
public static void main(String[] args) {
foo("bar");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -33,4 +33,4 @@ static String foo(String s) {
public static void main(String[] args) {
foo("bar");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -25,4 +25,4 @@ static String foo(String s) {
public static void main(String[] args) {
foo("bar");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -21,4 +21,4 @@ void foo(String... s) {
String wtf="MYNON-NLS";
String dw2 = "xxxxx"; String wtw="MYNON-NLS"; /* MYNON-NLS ??? */
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -17,4 +17,4 @@ class Foo {
class InnerClass {
public static final String inner = "Inner";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -23,4 +23,4 @@ private static String foo(String s) {
public static void main(String[] args) {
foo("bar");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* UI Localizer
* %%
* Copyright (C) 2015 - 2018 Devexperts, LLC
* Copyright (C) 2015 - 2019 Devexperts, LLC
* %%
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -27,4 +27,4 @@ public static void main(String[] args) {
class InnerClass {
public static final String inner = "Inner";
}
}
}
Loading

0 comments on commit 03911a4

Please sign in to comment.