Skip to content

Commit 3f93526

Browse files
authored
Fix #4348: Prepare for Beta MR1 by updating version codes & pulling in the latest pt-BR translations (#4565)
## Explanation Fixes #4348 This PR performs the final preparation tasks necessary for the MR1 Beta release to be cut. Specifically: - It updates the version codes & minor version. - It pulls the latest pt-BR translations (for the ones that didn't make it in the automatic Thursday Translatewiki push). - It addresses the final open comments from #4081 which included me needing to do the pt-BR translation for 2 strings related to profile names (I used Google Translate then made minor modifications). There are no tests affected directly by these changes (though we could consider adding some in the future). ## Essential Checklist - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). ## For UI-specific PRs only For the most part this PR is not UI-tied (though obviously the 1 English string change and all of the pt-BR string changes affect UIs). I'm deciding not to include screenshots for string-only changes since they aren't very interesting in this case (i.e. they don't seem like they would actually break the UI to warrant including screenshots). Commits: * Create dedicated alpha application component. This simplifies application component management significantly and allows individual build flavors to have their own unique module lists. * Add beta & GA update notices. This also introduces dedicated beta & GA build flavors which is a necessary prerequisite. It also introduces an extra beta, alpha, and dev mode labels for the splash screen (the latter 2 were extra) with 2 second minimum wait timers for beta and alpha to ensure they are seen. A 5-second safety timer was added to ensure the splash screen can always be passed even if something goes wrong at the domain level (since there are now quite a few moving pieces to determine the user's current onboarding state). * Add build tests for the new beta & GA flavors. * Fix broken test per earlier changes. * Fix general broken tests & builds. Tests broken due to changes to the app startup experience haven't yet been fixed. * Lint fixes. * First part of adding tests for GA notices. There's a bunch left to do here, this is mainly needed so that I can transfer changes to a different machine. * Update TransformAndroidManifestTest.kt Correct typos. * Fix tests & static checks. This also removes temporary debug code and TODOs, and finishes the tests for SplashActivity. * Post-merge fixes. * Test fixes. * Fix Gradle test. * Add some string resource checks/tools. Also, fixes major performance issue with all file-based CI checks. * Ensure newline consistency in translated strings. Also, fix reporting in new validation check script. * Add tests & fix static checks. * Update version codes & pt-BR strings. The strings were manually pulled Translatewiki. * Follow-up adjustments after self-review. * Add latest translated pt-BR strings. * Address comments from #4081.
1 parent 9303af9 commit 3f93526

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

app/src/main/res/values-pt-rBR/strings.xml

+16-5
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@
236236
<string name="add_profile_pin_info">Com um PIN, ninguém mais pode acessar um perfil além deste usuário atribuído.</string>
237237
<string name="add_profile_error_image_failed_store">Falha ao armazenar sua imagem de avatar. Por favor, tente novamente.</string>
238238
<string name="add_profile_error_name_not_unique">Este nome já está em uso por outro perfil.</string>
239-
<string name="add_profile_error_name_empty">Por favor, insira um nome para este perfil.</string>
240-
<string name="add_profile_error_name_only_letters">Os nomes podem ter apenas letras. Tente outro nome.</string>
239+
<string name="add_profile_error_name_empty">Por favor, insira um nome válido para este perfil.</string>
240+
<string name="add_profile_error_name_only_letters">Por favor, escolha um nome de perfil que não inclua números ou símbolos.</string>
241241
<string name="add_profile_error_pin_length">Seu PIN deve ter 3 dígitos.</string>
242242
<string name="add_profile_error_pin_confirm_wrong">Certifique-se de que os dois PINs coincidam.</string>
243243
<string name="add_profile_info_content_description">Mais informações sobre PINs de 3 dígitos.</string>
@@ -261,14 +261,17 @@
261261
<string name="pin_password_user_enter">Por favor, insira seu PIN.</string>
262262
<string name="input_pin_password_as_admin">PIN de 5 dígitos do administrador.</string>
263263
<string name="input_pin_password_as_user">PIN de 3 dígitos do usuário.</string>
264-
<string name="pin_password_forgot_pin" fuzzy="true">Eu esqueci meu pin.</string>
264+
<string name="pin_password_forgot_pin">Esqueceu o PIN?</string>
265265
<string name="pin_password_incorrect_pin">PIN incorreto.</string>
266266
<string name="pin_password_show">Mostrar</string>
267267
<string name="pin_password_hide">Esconder</string>
268268
<string name="pin_password_close">Fechar</string>
269269
<string name="pin_password_success">A alteração do PIN foi bem-sucedida</string>
270270
<string name="pin_password_forgot_title">Esqueceu o PIN?</string>
271-
<string name="admin_forgot_pin_message" fuzzy="true">Para redefinir seu PIN, desinstale %s e reinstale-o.\n\nLembre-se de que, se o dispositivo não estiver online, você pode perder o progresso do usuário em várias contas.</string>
271+
<string name="admin_forgot_pin_message">Para redefinir seu PIN, você precisará limpar todos os dados salvos de %s.\n\nLembre-se de que essa ação fará com que todos os perfis e o progresso do usuário sejam excluídos e não pode ser desfeito. Além disso, o aplicativo será fechado quando isso for concluído e precisará ser reaberto.</string>
272+
<string name="admin_forgot_pin_reset_app_data_button_text">Redefinir dados de %s.</string>
273+
<string name="admin_confirm_app_wipe_title">Confirmar redefinição de dados de %s</string>
274+
<string name="admin_confirm_app_wipe_message">Tem certeza de que deseja excluir todos os perfis %s neste dispositivo? Esta ação não poderá ser desfeita.</string>
272275
<string name="admin_confirm_app_wipe_positive_button_text">Sim</string>
273276
<string name="admin_confirm_app_wipe_negative_button_text">Não</string>
274277
<string name="show_hide_password_icon">Mostrar/Esconder ícone da senha</string>
@@ -369,7 +372,7 @@
369372
<string name="welcome">\"Bem-vindo %s!\"</string>
370373
<string name="what_do_you_want_to_learn">O que você quer aprender?</string>
371374
<string name="great">Ótimo</string>
372-
<string name="lets_get_started" fuzzy="true">Vamos começar.</string>
375+
<string name="lets_get_started">Vamos começar.</string>
373376
<string name="yes">Sim</string>
374377
<string name="no">Não...</string>
375378
<string name="pick_a_different_topic">Escolha um\ntópico diferente.</string>
@@ -420,8 +423,16 @@
420423
<string name="unsupported_app_version_dialog_title">Versão do aplicativo não suportada</string>
421424
<string name="unsupported_app_version_dialog_message">Esta versão do aplicativo não é mais suportada. Atualize-a na Play Store.</string>
422425
<string name="unsupported_app_version_dialog_close_button_text">Fechar aplicativo</string>
426+
<string name="splash_screen_developer_label">Versão do desenvolvedor</string>
427+
<string name="splash_screen_alpha_label">Alfa</string>
423428
<string name="splash_screen_beta_label">Beta</string>
429+
<string name="beta_notice_dialog_title">Aviso Beta</string>
430+
<string name="beta_notice_dialog_message">Olá! Seu aplicativo está sendo atualizado para a versão Beta. Se você tiver problemas ao usar o aplicativo ou tiver dúvidas, entre em contato conosco em [email protected].</string>
431+
<string name="beta_notice_dialog_do_not_show_again_text">Não exibir esta mensagem novamente</string>
424432
<string name="beta_notice_dialog_close_button_text">OK</string>
433+
<string name="general_availability_notice_dialog_title">Aviso de disponibilidade geral</string>
434+
<string name="general_availability_notice_dialog_message">Olá! Seu aplicativo está sendo atualizado para a versão de disponibilidade geral. Se você tiver problemas ao usar o aplicativo ou tiver dúvidas, entre em contato conosco em [email protected].</string>
435+
<string name="general_availability_notice_dialog_do_not_show_again_text">Não exibir esta mensagem novamente</string>
425436
<string name="general_availability_notice_dialog_close_button_text">OK</string>
426437
<string name="ratio_content_description_separator">para</string>
427438
<string name="ratio_default_hint_text">Insira uma razão no formato x:y.</string>

app/src/main/res/values/strings.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
<string name="add_profile_error_image_failed_store">We failed to store your avatar image. Please try again.</string>
272272
<string name="add_profile_error_name_not_unique">This name is already in use by another profile.</string>
273273
<string name="add_profile_error_name_empty">Please enter a valid name for this profile.</string>
274-
<string name="add_profile_error_name_only_letters">Names can only have letters. Try another name?</string>
274+
<string name="add_profile_error_name_only_letters">Please choose a profile name that doesn\'t include numbers or symbols.</string>
275275
<string name="add_profile_error_pin_length">Your PIN should be 3 digits long.</string>
276276
<string name="add_profile_error_pin_confirm_wrong">Please make sure that both PINs match.</string>
277277
<string name="add_profile_info_content_description">More information on 3-digit PINs.</string>

utility/src/test/java/org/oppia/android/util/profile/ProfileNameValidatorTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProfileNameValidatorTest {
3333
lateinit var name: String
3434

3535
@Before
36-
fun setup() {
36+
fun setUp() {
3737
setUpTestApplicationComponent()
3838
}
3939

version.bzl

+8-9
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ their device qualifies for more than one choice.
77
"""
88

99
MAJOR_VERSION = 0
10-
MINOR_VERSION = 8
10+
MINOR_VERSION = 9
1111

1212
# TODO(#4419): Remove the Kenya-specific alpha version code.
13-
# TODO(#4348): Offset these version codes by '+1' for the next release.
14-
OPPIA_DEV_KITKAT_VERSION_CODE = 27
15-
OPPIA_DEV_VERSION_CODE = 28
16-
OPPIA_ALPHA_KITKAT_VERSION_CODE = 29
17-
OPPIA_ALPHA_VERSION_CODE = 30
18-
OPPIA_ALPHA_KENYA_VERSION_CODE = 31
19-
OPPIA_BETA_VERSION_CODE = 32
20-
OPPIA_GA_VERSION_CODE = 33
13+
OPPIA_DEV_KITKAT_VERSION_CODE = 34
14+
OPPIA_DEV_VERSION_CODE = 35
15+
OPPIA_ALPHA_KITKAT_VERSION_CODE = 36
16+
OPPIA_ALPHA_VERSION_CODE = 37
17+
OPPIA_ALPHA_KENYA_VERSION_CODE = 38
18+
OPPIA_BETA_VERSION_CODE = 39
19+
OPPIA_GA_VERSION_CODE = 40

0 commit comments

Comments
 (0)