Skip to content

Commit

Permalink
added menu item for Brazilian Portuguese
Browse files Browse the repository at this point in the history
  • Loading branch information
xdsopl committed May 22, 2024
1 parent 65b0910 commit 97448c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/xdsopl/robot36/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ public boolean onOptionsItemSelected(MenuItem item) {
setLanguage("de");
return true;
}
if (id == R.id.action_brazilian_portuguese) {
setLanguage("pt-BR");
return true;
}
return super.onOptionsItemSelected(item);
}

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/menu/menu_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<item
android:id="@+id/action_german"
android:title="@string/german" />
<item
android:id="@+id/action_brazilian_portuguese"
android:title="@string/brazilian_portuguese" />
</menu>
</item>
<item
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<string name="simplified_chinese" translatable="false">简体中文</string>
<string name="russian" translatable="false">Русский</string>
<string name="german" translatable="false">Deutsch</string>
<string name="brazilian_portuguese" translatable="false">Português brasileiro</string>
<string name="disclaimer" translatable="false">THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</string>
<string name="language">Language</string>
<string name="share">Share</string>
Expand Down

0 comments on commit 97448c9

Please sign in to comment.