Permalink
Browse files

Remove all localization checker NON-NLS-n tags from source files

  • Loading branch information...
1 parent a03c3ed commit 91a6efe70729735354041dc135d1f9c215d6153f @yukuku committed Oct 29, 2015
Showing with 374 additions and 374 deletions.
  1. +2 −2 ATree/src/main/java/yuku/atree/BaseMutableTreeNode.java
  2. +1 −1 ATree/src/main/java/yuku/atree/TreePath.java
  3. +2 −2 ATree/src/main/java/yuku/atree/nodes/BaseFileTreeNode.java
  4. +3 −3 Afw/src/main/java/yuku/afw/storage/InternalDbHelper.java
  5. +2 −2 Alkitab/src/main/java/yuku/alkitab/base/App.java
  6. +12 −12 Alkitab/src/main/java/yuku/alkitab/base/IsiActivity.java
  7. +6 −6 Alkitab/src/main/java/yuku/alkitab/base/ac/FontManagerActivity.java
  8. +1 −1 Alkitab/src/main/java/yuku/alkitab/base/ac/ShareActivity.java
  9. +3 −3 Alkitab/src/main/java/yuku/alkitab/base/devotion/DevotionDownloader.java
  10. +1 −1 Alkitab/src/main/java/yuku/alkitab/base/model/VersionImpl.java
  11. +8 −8 Alkitab/src/main/java/yuku/alkitab/base/pdbconvert/ConvertOptionsDialog.java
  12. +20 −20 Alkitab/src/main/java/yuku/alkitab/base/pdbconvert/ConvertPdbToYes2.java
  13. +2 −2 Alkitab/src/main/java/yuku/alkitab/base/storage/InternalReader.java
  14. +8 −8 Alkitab/src/main/java/yuku/alkitab/base/storage/SongDb.java
  15. +6 −6 Alkitab/src/main/java/yuku/alkitab/base/sv/DownloadService.java
  16. +1 −1 Alkitab/src/main/java/yuku/alkitab/base/util/AddonManager.java
  17. +5 −5 Alkitab/src/main/java/yuku/alkitab/base/util/BookNameSorter.java
  18. +10 −10 Alkitab/src/main/java/yuku/alkitab/base/util/FontManager.java
  19. +10 −10 Alkitab/src/main/java/yuku/alkitab/base/util/Jumper.java
  20. +67 −67 Alkitab/src/main/java/yuku/alkitab/base/util/OsisBookNames.java
  21. +2 −2 Alkitab/src/main/java/yuku/alkitab/base/util/QueryTokenizer.java
  22. +5 −5 Alkitab/src/main/java/yuku/alkitab/base/util/SearchEngine.java
  23. +3 −3 Alkitab/src/main/java/yuku/alkitab/base/util/SongFilter.java
  24. +3 −3 Alkitab/src/main/java/yuku/alkitab/base/widget/SingleViewVerseAdapter.java
  25. +1 −1 Alkitab/src/main/java/yuku/alkitab/yes1/Yes1PericopeBlock.java
  26. +2 −2 Alkitab/src/main/java/yuku/alkitab/yes1/Yes1PericopeIndex.java
  27. +1 −1 AlkitabConverter/src/main/java/yuku/alkitabconverter/util/IntArrayList.java
  28. +32 −32 AlkitabConverter/src/main/java/yuku/alkitabconverter/yes1/Yes1File.java
  29. +1 −1 AlkitabConverter/src/main/java/yuku/alkitabconverter/yes_common/Yes2Common.java
  30. +7 −7 AlkitabFeedback/src/main/java/yuku/alkitabfeedback/FeedbackSender.java
  31. +4 −4 AlkitabModel/src/main/java/yuku/alkitab/model/Book.java
  32. +1 −1 AlkitabModel/src/main/java/yuku/alkitab/model/PericopeBlock.java
  33. +1 −1 AlkitabModel/src/main/java/yuku/alkitab/util/IntArrayList.java
  34. +14 −14 AlkitabYes2/src/main/java/yuku/alkitab/yes2/Yes2Reader.java
  35. +1 −1 AlkitabYes2/src/main/java/yuku/alkitab/yes2/model/Yes2PericopeBlock.java
  36. +1 −1 BiblePlus/src/main/java/com/compactbyte/android/bible/PDBFileStream.java
  37. +13 −13 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/BiblePlusPDB.java
  38. +3 −3 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/BitVector.java
  39. +4 −4 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/BookInfo.java
  40. +10 −10 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/Bookmark.java
  41. +2 −2 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/BookmarkPDB.java
  42. +3 −3 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/PDBBookmark.java
  43. +4 −4 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/PDBHeader.java
  44. +10 −10 BiblePlus/src/main/java/com/compactbyte/bibleplus/reader/Util.java
  45. +2 −2 BintexReader/src/main/java/yuku/bintex/BintexReader.java
  46. +3 −3 BintexWriter/src/main/java/yuku/bintex/BintexWriter.java
  47. +5 −5 FileChooser/src/main/java/yuku/filechooser/FileChooserActivity.java
  48. +66 −66 RpbTester/src/RpbTester.java
@@ -18,7 +18,7 @@ public BaseMutableTreeNode(final Object userObject) {
@Override public void insert(final MutableTreeNode child, final int childIndex) {
if (child == null || isNodeAncestor(child)) {
- throw new IllegalArgumentException("invalid child to insert"); //$NON-NLS-1$
+ throw new IllegalArgumentException("invalid child to insert");
}
if (child.getParent() instanceof MutableTreeNode) {
@@ -74,7 +74,7 @@ public BaseMutableTreeNode(final Object userObject) {
@Override public void remove(final MutableTreeNode child) {
int index = -1;
if (child == null || children == null || (index = children.indexOf(child)) == -1) {
- throw new IllegalArgumentException("child null or not found"); //$NON-NLS-1$
+ throw new IllegalArgumentException("child null or not found");
}
remove(index);
}
@@ -94,7 +94,7 @@ public TreePath getParentPath() {
public TreeNode getPathComponent(final int element) {
final int pathCount = getPathCount();
if (element < 0 || element >= pathCount) {
- throw new IllegalArgumentException("element index out of bounds"); //$NON-NLS-1$
+ throw new IllegalArgumentException("element index out of bounds");
}
if (parent == null) {
return elements[element];
@@ -109,9 +109,9 @@ public BaseFileTreeNode(VirtualChild[] virtualChildren) {
String bname = b.getName();
// dot-files are later
- if (aname.startsWith(".") && !bname.startsWith(".")) { //$NON-NLS-1$ //$NON-NLS-2$
+ if (aname.startsWith(".") && !bname.startsWith(".")) {
return +1;
- } else if (!aname.startsWith(".") && bname.startsWith(".")) { //$NON-NLS-1$ //$NON-NLS-2$
+ } else if (!aname.startsWith(".") && bname.startsWith(".")) {
return -1;
}
@@ -14,7 +14,7 @@
* @deprecated Use {@link yuku.afw.storage.InternalDbHelper#InternalDbHelper(String)} instead to allow multiple databases in one app.
*/
@Deprecated public InternalDbHelper() {
- this("InternalDb"); //$NON-NLS-1$
+ this("InternalDb");
}
public InternalDbHelper(String name) {
@@ -26,13 +26,13 @@ public InternalDbHelper(String name) {
};
@Override public void onCreate(SQLiteDatabase db) {
- Log.d(TAG, "onCreate called"); //$NON-NLS-1$
+ Log.d(TAG, "onCreate called");
try {
createTables(db);
createIndexes(db);
} catch (SQLException e) {
- Log.e(TAG, "onCreate db failed!", e); //$NON-NLS-1$
+ Log.e(TAG, "onCreate db failed!", e);
throw e;
}
}
@@ -210,15 +210,15 @@ private static Locale getLocaleFromPreferences() {
@Override public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
- Log.d(TAG, "@@onConfigurationChanged: config changed to: " + newConfig); //$NON-NLS-1$
+ Log.d(TAG, "@@onConfigurationChanged: config changed to: " + newConfig);
updateConfigurationWithPreferencesLocale();
}
public static void updateConfigurationWithPreferencesLocale() {
final Configuration config = context.getResources().getConfiguration();
final Locale locale = getLocaleFromPreferences();
if (!U.equals(config.locale.getLanguage(), locale.getLanguage()) || !U.equals(config.locale.getCountry(), locale.getCountry())) {
- Log.d(TAG, "@@updateConfigurationWithPreferencesLocale: locale will be updated to: " + locale); //$NON-NLS-1$
+ Log.d(TAG, "@@updateConfigurationWithPreferencesLocale: locale will be updated to: " + locale);
config.locale = locale;
context.getResources().updateConfiguration(config, null);
@@ -729,11 +729,11 @@ private void initNfcIfAvailable() {
nfcAdapter.setNdefPushMessageCallback(event -> {
JSONObject obj = new JSONObject();
try {
- obj.put("ari", Ari.encode(IsiActivity.this.activeBook.bookId, IsiActivity.this.chapter_1, lsSplit0.getVerseBasedOnScroll())); //$NON-NLS-1$
+ obj.put("ari", Ari.encode(IsiActivity.this.activeBook.bookId, IsiActivity.this.chapter_1, lsSplit0.getVerseBasedOnScroll()));
} catch (JSONException e) { // won't happen
}
byte[] payload = obj.toString().getBytes();
- NdefRecord record = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "application/vnd.yuku.alkitab.nfc.beam".getBytes(), new byte[0], payload); //$NON-NLS-1$
+ NdefRecord record = new NdefRecord(NdefRecord.TNF_MIME_MEDIA, "application/vnd.yuku.alkitab.nfc.beam".getBytes(), new byte[0], payload);
return new NdefMessage(new NdefRecord[] {
record,
NdefRecord.createApplicationRecord(getPackageName()),
@@ -761,9 +761,9 @@ private void enableNfcForegroundDispatchIfAvailable() {
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, IsiActivity.class).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);
IntentFilter ndef = new IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
try {
- ndef.addDataType("application/vnd.yuku.alkitab.nfc.beam"); //$NON-NLS-1$
+ ndef.addDataType("application/vnd.yuku.alkitab.nfc.beam");
} catch (IntentFilter.MalformedMimeTypeException e) {
- throw new RuntimeException("fail mime type", e); //$NON-NLS-1$
+ throw new RuntimeException("fail mime type", e);
}
IntentFilter[] intentFiltersArray = new IntentFilter[] {ndef, };
nfcAdapter.enableForegroundDispatch(this, pendingIntent, intentFiltersArray, null);
@@ -786,12 +786,12 @@ private IntentResult tryGetIntentResultFromBeam(Intent intent) {
String json = new String(records[0].getPayload());
try {
JSONObject obj = new JSONObject(json);
- final int ari = obj.optInt("ari", -1); //$NON-NLS-1$
+ final int ari = obj.optInt("ari", -1);
if (ari == -1) return null;
return new IntentResult(ari);
} catch (JSONException e) {
- Log.e(TAG, "Malformed json from nfc", e); //$NON-NLS-1$
+ Log.e(TAG, "Malformed json from nfc", e);
return null;
}
}
@@ -932,7 +932,7 @@ int jumpTo(String reference) {
return 0;
}
- Log.d(TAG, "going to jump to " + reference); //$NON-NLS-1$
+ Log.d(TAG, "going to jump to " + reference);
Jumper jumper = new Jumper(reference);
if (! jumper.getParseSucceeded()) {
@@ -1551,7 +1551,7 @@ private void menuSearch_click() {
if (result != null && result.chosenIntent != null) {
Intent chosenIntent = result.chosenIntent;
final String packageName = chosenIntent.getComponent().getPackageName();
- if (U.equals(packageName, "com.facebook.katana")) { //$NON-NLS-1$
+ if (U.equals(packageName, "com.facebook.katana")) {
String verseUrl = chosenIntent.getStringExtra(EXTRA_verseUrl);
if (verseUrl != null) {
chosenIntent.putExtra(Intent.EXTRA_TEXT, verseUrl); // change text to url
@@ -2092,7 +2092,7 @@ public void onClick(final Type type, final int arif, final Object source) {
* Please ignore it and leave it intact. */
if (hasEsvsbAsal == null) {
try {
- getPackageManager().getApplicationInfo("yuku.esvsbasal", 0); //$NON-NLS-1$
+ getPackageManager().getApplicationInfo("yuku.esvsbasal", 0);
hasEsvsbAsal = true;
} catch (PackageManager.NameNotFoundException e) {
hasEsvsbAsal = false;
@@ -2336,11 +2336,11 @@ public void onOk(int colorRgb) {
final int ari = Ari.encode(IsiActivity.this.activeBook.bookId, IsiActivity.this.chapter_1, selected.get(0));
try {
- Intent intent = new Intent("yuku.esvsbasal.action.GOTO"); //$NON-NLS-1$
- intent.putExtra("ari", ari); //$NON-NLS-1$
+ Intent intent = new Intent("yuku.esvsbasal.action.GOTO");
+ intent.putExtra("ari", ari);
startActivity(intent);
} catch (Exception e) {
- Log.e(TAG, "ESVSB starting", e); //$NON-NLS-1$
+ Log.e(TAG, "ESVSB starting", e);
}
} return true;
case R.id.menuGuide: {
@@ -132,16 +132,16 @@ void loadFontList() {
}
String getFontDownloadKey(String name) {
- return "FontManager/" + name; //$NON-NLS-1$
+ return "FontManager/" + name;
}
private String getFontNameFromDownloadKey(String key) {
- if (!key.startsWith("FontManager/")) return null; //$NON-NLS-1$
- return key.substring("FontManager/".length()); //$NON-NLS-1$
+ if (!key.startsWith("FontManager/")) return null;
+ return key.substring("FontManager/".length());
}
String getFontDownloadDestination(String name) {
- return new File(FontManager.getFontsPath(), "download-" + name + ".zip").getAbsolutePath(); //$NON-NLS-1$ //$NON-NLS-2$
+ return new File(FontManager.getFontsPath(), "download-" + name + ".zip").getAbsolutePath();
}
public static class FontItem {
@@ -313,14 +313,14 @@ public void onSuccess() {
File fontDir = FontManager.getFontDir(fontName);
fontDir.mkdirs();
- Log.d(TAG, "Going to unzip " + downloadedZip, new Throwable().fillInStackTrace()); //$NON-NLS-1$
+ Log.d(TAG, "Going to unzip " + downloadedZip, new Throwable().fillInStackTrace());
ZipInputStream zis = new ZipInputStream(new BufferedInputStream(new FileInputStream(downloadedZip)));
try {
ZipEntry ze;
while ((ze = zis.getNextEntry()) != null) {
String zname = ze.getName();
- Log.d(TAG, "Extracting from zip: " + zname); //$NON-NLS-1$
+ Log.d(TAG, "Extracting from zip: " + zname);
File extractFile = new File(fontDir, zname);
FileOutputStream fos = new FileOutputStream(extractFile);
try {
@@ -180,7 +180,7 @@ public ResolveListAdapter(Context context, Intent intent, Intent[] initialIntent
}
ActivityInfo ai = ii.resolveActivityInfo(getPackageManager(), 0);
if (ai == null) {
- Log.w("ResolverActivity", "No activity found for " + ii); //$NON-NLS-1$ //$NON-NLS-2$
+ Log.w("ResolverActivity", "No activity found for " + ii);
continue;
}
ResolveInfo ri = new ResolveInfo();
@@ -89,7 +89,7 @@ public void run() {
// success!
article.fillIn(output);
- if (output.startsWith("NG")) { //$NON-NLS-1$
+ if (output.startsWith("NG")) {
broadcastDownloadStatus(App.context.getString(R.string.kesalahan_dalam_mengunduh_namaumum_tgl_tgl_output, kind.title, article.getDate(), output));
} else {
broadcastDownloadStatus(App.context.getString(R.string.berhasil_mengunduh_namaumum_tgl_tgl, kind.title, article.getDate()));
@@ -99,10 +99,10 @@ public void run() {
// let's now store it to db
S.getDb().storeArticleToDevotions(article);
} catch (IOException e) {
- Log.w(TAG, "@@run", e); //$NON-NLS-1$
+ Log.w(TAG, "@@run", e);
broadcastDownloadStatus(App.context.getString(R.string.gagal_mengunduh_namaumum_tgl_tgl, kind.title, article.getDate()));
- Log.d(TAG, "Downloader failed to download"); //$NON-NLS-1$
+ Log.d(TAG, "Downloader failed to download");
}
}
@@ -140,7 +140,7 @@ public synchronized Book getFirstBook() {
if (b != null) return b;
}
- Log.e(TAG, "No books available on this version. Version info: " + (this.bibleReader == null? "reader=null": (this.bibleReader.getLongName() + " books.length=" + books.length))); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
+ Log.e(TAG, "No books available on this version. Version info: " + (this.bibleReader == null? "reader=null": (this.bibleReader.getLongName() + " books.length=" + books.length)));
return null;
}
@@ -117,18 +117,18 @@ public void onPositive(final MaterialDialog dialog) {
if (tabEncoding == null) {
for (Map.Entry<String, Charset> charset: Charset.availableCharsets().entrySet()) {
String key = charset.getKey();
- Log.d(TAG, "available charset: " + key); //$NON-NLS-1$
+ Log.d(TAG, "available charset: " + key);
charsets.add(key);
}
Collections.sort(charsets, new Comparator<String>() {
@Override public int compare(String a, String b) {
int va = 0;
int vb = 0;
- if (a.equalsIgnoreCase("utf-8")) va = -2; //$NON-NLS-1$
- if (a.equalsIgnoreCase("iso-8859-1")) va = -1; //$NON-NLS-1$
- if (b.equalsIgnoreCase("utf-8")) vb = -2; //$NON-NLS-1$
- if (b.equalsIgnoreCase("iso-8859-1")) vb = -1; //$NON-NLS-1$
+ if (a.equalsIgnoreCase("utf-8")) va = -2;
+ if (a.equalsIgnoreCase("iso-8859-1")) va = -1;
+ if (b.equalsIgnoreCase("utf-8")) vb = -2;
+ if (b.equalsIgnoreCase("iso-8859-1")) vb = -1;
if (va == 0 && vb == 0) {
return a.compareToIgnoreCase(b);
@@ -146,7 +146,7 @@ public void onPositive(final MaterialDialog dialog) {
encodingAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
cbEncoding.setAdapter(encodingAdapter);
- showSample("utf-8"); // default! if greek or hebrew, this won't be cared! //$NON-NLS-1$
+ showSample("utf-8"); // default! if greek or hebrew, this won't be cared!
cbEncoding.setOnItemSelectedListener(cbEncoding_itemSelected);
}
@@ -157,9 +157,9 @@ void showSample(String encoding) {
String bookName = bookInfo.getFullName();
String verse = bookInfo.getVerse(1, 1);
if (verse.length() > 90) {
- verse = verse.substring(0, 88) + "..."; //$NON-NLS-1$
+ verse = verse.substring(0, 88) + "...";
}
- lSample.setText(bookName + " 1:1 " + verse); //$NON-NLS-1$
+ lSample.setText(bookName + " 1:1 " + verse);
}
private OnItemSelectedListener cbEncoding_itemSelected = new OnItemSelectedListener() {
Oops, something went wrong.

0 comments on commit 91a6efe

Please sign in to comment.