Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Usare indicatori di posizione con String.format fa crashare l'applicazione
  • Loading branch information
ferdi2005 committed Sep 8, 2022
1 parent 49bbdf2 commit 7d4cd22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/controllers/upload/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function showUserInfo(userInfo) {
});

var wiki;
userInfo.testuser ? wiki = "Test wiki" : wiki = "Wikimedia Commons"
userInfo.testuser ? wiki = "Test wiki" : wiki = "Wikimedia Commons";

$.mediawiki_data.text = String.format(L("login_info"), userInfo.username, wiki);

Expand Down
6 changes: 3 additions & 3 deletions app/i18n/en/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
<string name="registration_deleted_by_error">You have been logged out due to a problem. Reopen this tab to start a new one and upload your photographs.</string>
<string name="ok">Ok</string>
<string name="server_deletion_not_possible">Your data could not be deleted from the server. Make sure to revoke the oAuth authorization. </string>
<string name="login_info">Username: %1$s\nWiki: %2$s</string>
<string name="login_info">Username: %s\nWiki: %s</string>
<string name="your_username"> Your username is %s.</string>
<string name="start_commons_login">Login to Wikimedia Commons</string>
<string name="login_not_done">You are not logged in. Click on login to Wikimedia Commons to do so.</string>
<string name="problem_do_logout">Something went wrong, retry later. If it happens again, please log out and log in again.</string>
<string name="no_upload_until_commons">Before you can upload photographs, you must be logged into Wikimedia Commons.</string>
<string name="photo_not_uploaded">Image %s not uploaded due to error.</string>
<string name="photo_not_uploaded_with_reason">Image %1$s not uploaded due to error: %2$s.</string>
<string name="photo_not_uploaded_with_reason">Image %1$s not uploaded due to error: %s.</string>
<string name="error_please_logout">An error has occurred. Log out from the Upload Settings Manager in the settings tab.</string>
<string name="error_image_upload">Error uploading this image, please try again later.</string>
<string name="image_title">Image title</string>
Expand All @@ -44,7 +44,7 @@
<string name="fields_are_mandatory">The fields are mandatory! Fill them all out before uploading.</string>
<string name="image_queue_success">Photos successfully queued for upload! You can check their status in the settings.</string>
<string name="image_queue_error">Something went wrong and the upload failed. Please try again later: %s.</string>.
<string name="update_app">Warning! You are using an outdated version of the app (%1$s). Go to the store and download the new version %2$s.</string>.
<string name="update_app">Warning! You are using an outdated version of the app (%s). Go to the store and download the new version %s.</string>.
<string name="info">Info about Wiki Loves Monuments</string>
<string name="credits">Credits</string>.
<string name="upload_config">Manage upload settings</string>.
Expand Down
6 changes: 3 additions & 3 deletions app/i18n/it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
<string name="registration_deleted_by_error">Il tuo login è stato rimosso a causa di un problema. Riapri questa scheda per crearne una nuova e caricare le tue fotografie.</string>
<string name="ok">Ok</string>
<string name="server_deletion_not_possible">Non è stato possibile cancellare i tuoi dati dal server. Assicurati di revocare l'autorizzazione oAuth. </string>
<string name="login_info">Username: %1$s\nWiki: %2$s</string>
<string name="login_info">Username: %s\nWiki: %s</string>
<string name="your_username"> Il tuo nome utente è %s.</string>
<string name="start_commons_login">Esegui il login a Commons</string>
<string name="login_not_done">Non hai ancora effettuato il login. Clicca su Accedi a Wikimedia Commons per farlo.</string>
<string name="problem_do_logout">Si è verificato un problema, riprova più tardi. Se si ripresenta, fai il logout.</string>
<string name="no_upload_until_commons">Prima di poter caricare le fotografie, devi effettuare l'accesso a Wikimedia Commons.</string>
<string name="photo_not_uploaded">Immagine %s non caricata a causa di un errore.</string>
<string name="photo_not_uploaded_with_reason">Immagine %1$s non caricata a causa di un errore: %2$s.</string>
<string name="photo_not_uploaded_with_reason">Immagine %s non caricata a causa di un errore: %s.</string>
<string name="error_please_logout">Si è verificato un errore. Esegui il logout dalla Gestione impostazioni upload nella scheda impostazioni.</string>
<string name="error_image_upload">Errore nel caricamento di quest'immagine, riprova più tardi.</string>
<string name="image_title">Titolo dell'immagine</string>
Expand All @@ -44,7 +44,7 @@
<string name="fields_are_mandatory">I campi sono obbligatori! Compilali tutti prima di procedere all'upload.</string>
<string name="image_queue_success">Foto messe in coda per il caricamento con successo! Puoi verificare il loro stato nelle impostazioni.</string>
<string name="image_queue_error">Qualcosa è andato storto e il caricamento non è riuscito. Riprova più tardi: %s.</string>
<string name="update_app">Attenzione! Stai usando una versione non aggiornata dell'applicazione (%1$s). Vai sullo store a scaricare la nuova versione %2$s.</string>
<string name="update_app">Attenzione! Stai usando una versione non aggiornata dell'applicazione (%s). Vai sullo store a scaricare la nuova versione %s.</string>
<string name="info">Info su Wiki Loves Monuments</string>
<string name="credits">Crediti</string>
<string name="upload_config">Gestione impostazioni upload</string>
Expand Down

0 comments on commit 7d4cd22

Please sign in to comment.