Renamed to Portuguese (Brasil)
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@ plugins {
|
||||
id 'com.android.application'
|
||||
}
|
||||
|
||||
def playStore = false
|
||||
def playStore = true
|
||||
def materialVersion = '1.6.1'
|
||||
|
||||
android {
|
||||
@@ -19,8 +19,8 @@ android {
|
||||
}
|
||||
|
||||
targetSdk 34
|
||||
versionCode 16
|
||||
versionName "0.2.7"
|
||||
versionCode 17
|
||||
versionName "0.2.8-SNAPSHOT"
|
||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||
vectorDrawables.generatedDensities = []
|
||||
}
|
||||
|
||||
@@ -593,7 +593,7 @@ public class MainActivity extends AppCompatActivity implements FileDialog.OnFile
|
||||
this.menu = menu;
|
||||
|
||||
// Currently on Google TV access to app bar icons doesn't seem to work
|
||||
if (isGoogleTV(this)) {
|
||||
if (isAndroidTV(this)) {
|
||||
for (int i = 0; i < menu.size(); i++) {
|
||||
MenuItem menuItem = menu.getItem(i);
|
||||
menuItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER);
|
||||
@@ -613,7 +613,7 @@ public class MainActivity extends AppCompatActivity implements FileDialog.OnFile
|
||||
super.onCreateContextMenu(menu, v, menuInfo);
|
||||
Resources resources = getResources();
|
||||
int order = 0;
|
||||
if (isGoogleTV(codeArea.getContext())) {
|
||||
if (isAndroidTV(codeArea.getContext())) {
|
||||
menu.add(0, GO_TO_SIDE_PANEL_POPUP_ID, order, resources.getString(R.string.action_go_to_side_panel));
|
||||
order++;
|
||||
menu.add(0, OPEN_MAIN_MENU_POPUP_ID, order, resources.getString(R.string.action_open_main_menu));
|
||||
@@ -1026,7 +1026,7 @@ public class MainActivity extends AppCompatActivity implements FileDialog.OnFile
|
||||
}
|
||||
|
||||
public void openFile() {
|
||||
if (MainActivity.isGoogleTV(this) || Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
if (MainActivity.isAndroidTV(this) || Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
fallBackOpenFile(FallbackFileType.FILE);
|
||||
return;
|
||||
}
|
||||
@@ -1051,7 +1051,7 @@ public class MainActivity extends AppCompatActivity implements FileDialog.OnFile
|
||||
}
|
||||
|
||||
public void openTableFile() {
|
||||
if (MainActivity.isGoogleTV(this) || Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
if (MainActivity.isAndroidTV(this) || Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
fallBackOpenFile(FallbackFileType.TABLE_FILE);
|
||||
return;
|
||||
}
|
||||
@@ -1090,7 +1090,7 @@ public class MainActivity extends AppCompatActivity implements FileDialog.OnFile
|
||||
public void saveAs(@Nullable Runnable postSaveAsAction) {
|
||||
this.postSaveAsAction = postSaveAsAction;
|
||||
|
||||
if (MainActivity.isGoogleTV(this) || Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
if (MainActivity.isAndroidTV(this) || Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) {
|
||||
fallBackSaveAs();
|
||||
return;
|
||||
}
|
||||
@@ -1504,7 +1504,7 @@ public class MainActivity extends AppCompatActivity implements FileDialog.OnFile
|
||||
return codeArea;
|
||||
}
|
||||
|
||||
public static boolean isGoogleTV(Context context) {
|
||||
public static boolean isAndroidTV(Context context) {
|
||||
final PackageManager pm = context.getPackageManager();
|
||||
return pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK);
|
||||
}
|
||||
@@ -1551,7 +1551,7 @@ public class MainActivity extends AppCompatActivity implements FileDialog.OnFile
|
||||
public boolean onKey(View view, int keyCode, KeyEvent keyEvent) {
|
||||
if (!codeArea.isFocused()) {
|
||||
if (keyEvent.getAction() == KeyEvent.ACTION_UP) {
|
||||
if (keyEvent.getKeyCode() == KeyEvent.KEYCODE_BACK && isGoogleTV(codeArea.getContext())) {
|
||||
if (keyEvent.getKeyCode() == KeyEvent.KEYCODE_BACK && isAndroidTV(codeArea.getContext())) {
|
||||
codeArea.post(codeArea::requestFocus);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ public class SearchDialog extends AppCompatDialogFragment {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (keyboardShown && MainActivity.isGoogleTV(codeArea.getContext())) {
|
||||
if (keyboardShown && MainActivity.isAndroidTV(codeArea.getContext())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:text="Miroslav Hajda\nReza Almanda (app logo)\nGovind S Nair (Hindi translation)\nWeiguangTWK (Chinese translation)\nThomas Reis (Portuguese translation)\nBaturax (Turkish translation)"
|
||||
android:text="Miroslav Hajda\nReza Almanda (app logo)\nGovind S Nair (Hindi translation)\nWeiguangTWK (Chinese translation)\nThomas Reis (Portuguese-Brasil translation)\nBaturax (Turkish translation)"
|
||||
tools:ignore="HardcodedText" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
@@ -101,10 +101,10 @@
|
||||
<string name="search_binary">Binário</string>
|
||||
<string name="search_from_cursor">Pesquisar a partir do cursor</string>
|
||||
<string name="search_match_case">Diferenciar maiúsculas de minúsculas</string>
|
||||
<string name="search_show_multiple_matches">Mostrar correspondências múltiplas</string>
|
||||
<string name="search_show_multiple_matches">Mostrar múltiplas correspondências</string>
|
||||
<string name="search_backward_direction">Pesquisar para trás</string>
|
||||
<string name="search_in_progress">Pesquisar…</string>
|
||||
<string name="search_match_none">Não foram encontradas correspondências.</string>
|
||||
<string name="search_match_single">Única correspondência encontrada.</string>
|
||||
<string name="search_match_found">"A mostrar %1$d de %2$d correspondências encontradas.</string>
|
||||
<string name="search_in_progress">Pesquisando…</string>
|
||||
<string name="search_match_none">Nenhuma correspondência encontrada.</string>
|
||||
<string name="search_match_single">Uma única correspondência encontrada.</string>
|
||||
<string name="search_match_found">"Mostrando %1$d de %2$d correspondências encontradas.</string>
|
||||
</resources>
|
||||
@@ -17,7 +17,7 @@
|
||||
<item>Česky</item>
|
||||
<item>हिंदी</item>
|
||||
<item>简体中文</item>
|
||||
<item>Português</item>
|
||||
<item>Português (Brasil)</item>
|
||||
<item>Türkçe</item>
|
||||
<item>Русский</item>
|
||||
<item>Español</item>
|
||||
@@ -29,7 +29,7 @@
|
||||
<item>cs</item>
|
||||
<item>hi</item>
|
||||
<item>zh-CN</item>
|
||||
<item>pt</item>
|
||||
<item>pt-BR</item>
|
||||
<item>tr</item>
|
||||
<item>ru</item>
|
||||
<item>es</item>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
0.2.8
|
||||
|
||||
0.2.7 (2025-06-19)
|
||||
- Added basic binary search
|
||||
- Added Portuguese, Turkish, Russian and Spanish translations
|
||||
|
||||
Reference in New Issue
Block a user