Skip to content

Commit

Permalink
fix: Show bold text correctly in many locales (#1189)
Browse files Browse the repository at this point in the history
Previous translations used `<b>` instead of escaping the opening bracket
(`&lt;b>`) so the styling was being lost, per
https://developer.android.com/guide/topics/resources/string-resource#StylingWithHTML.
  • Loading branch information
nikclayton authored Dec 30, 2024
1 parent 8116fcb commit edc7692
Show file tree
Hide file tree
Showing 46 changed files with 291 additions and 291 deletions.
24 changes: 12 additions & 12 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -312,20 +312,20 @@
<string name="poll_ended_created">لقد انتهى استطلاع رأي قمتَ بإنشائه</string>
<string name="pref_title_notification_filter_poll">تنتهي استطلاعات الرأي</string>
<plurals name="favs">
<item quantity="zero"><b>%1$s</b> مفضلة</item>
<item quantity="one"><b>%1$s</b> مفضلة</item>
<item quantity="two"><b>%1$s</b> مفضلتين</item>
<item quantity="few"><b>%1$s</b> مفضلة</item>
<item quantity="many"><b>%1$s</b> مفضلات</item>
<item quantity="other"><b>%1$s</b> مفضلات</item>
<item quantity="zero">&lt;b>%1$s&lt;/b> مفضلة</item>
<item quantity="one">&lt;b>%1$s&lt;/b> مفضلة</item>
<item quantity="two">&lt;b>%1$s&lt;/b> مفضلتين</item>
<item quantity="few">&lt;b>%1$s&lt;/b> مفضلة</item>
<item quantity="many">&lt;b>%1$s&lt;/b> مفضلات</item>
<item quantity="other">&lt;b>%1$s&lt;/b> مفضلات</item>
</plurals>
<plurals name="reblogs">
<item quantity="zero"><b>%s</b> مشاركة</item>
<item quantity="one"><b>%s</b> مشاركة</item>
<item quantity="two"><b>%s</b> مشاركتين</item>
<item quantity="few"><b>%s</b> مشاركات</item>
<item quantity="many"><b>%s</b> مشاركات</item>
<item quantity="other"><b>%s</b> مشاركات</item>
<item quantity="zero">&lt;b>%s&lt;/b> مشاركة</item>
<item quantity="one">&lt;b>%s&lt;/b> مشاركة</item>
<item quantity="two">&lt;b>%s&lt;/b> مشاركتين</item>
<item quantity="few">&lt;b>%s&lt;/b> مشاركات</item>
<item quantity="many">&lt;b>%s&lt;/b> مشاركات</item>
<item quantity="other">&lt;b>%s&lt;/b> مشاركات</item>
</plurals>
<string name="pref_title_bot_overlay">إظهار علامة البوتات</string>
<plurals name="poll_timespan_days">
Expand Down
16 changes: 8 additions & 8 deletions app/src/main/res/values-be/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@
<string name="send_post_notification_channel_name">Дасыланне допісаў</string>
<string name="later">Пазней</string>
<plurals name="favs">
<item quantity="one"><b>%1$s</b> абраны</item>
<item quantity="few"><b>%1$s</b> абраныя</item>
<item quantity="many"><b>%1$s</b> абраных</item>
<item quantity="other"><b>%1$s</b> абраных</item>
<item quantity="one">&lt;b>%1$s&lt;/b> абраны</item>
<item quantity="few">&lt;b>%1$s&lt;/b> абраныя</item>
<item quantity="many">&lt;b>%1$s&lt;/b> абраных</item>
<item quantity="other">&lt;b>%1$s&lt;/b> абраных</item>
</plurals>
<string name="title_reblogged_by">Пашырылі</string>
<string name="profile_metadata_label">Метазвесткі профілю</string>
Expand All @@ -349,10 +349,10 @@
<string name="pref_title_absolute_time">Паказваць абсалютны час</string>
<string name="label_remote_account">Інфармацыя ніжэй можа не паказваць поўны профіль карыстальніка. Націсніце, каб адкрыць поўны профіль у браўзеры.</string>
<plurals name="reblogs">
<item quantity="one"><b>%s</b> пашыраны</item>
<item quantity="few"><b>%s</b> пашырана</item>
<item quantity="many"><b>%s</b> пашыраных</item>
<item quantity="other"><b>%s</b> пашыраных</item>
<item quantity="one">&lt;b>%s&lt;/b> пашыраны</item>
<item quantity="few">&lt;b>%s&lt;/b> пашырана</item>
<item quantity="many">&lt;b>%s&lt;/b> пашыраных</item>
<item quantity="other">&lt;b>%s&lt;/b> пашыраных</item>
</plurals>
<string name="unsaved_changes">У Вас засталіся незахаваныя змены.</string>
<string name="expand_collapse_all_posts">Разгарнуць/згарнуць допісы</string>
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values-bn-rBD/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@
<string name="error_no_web_browser_found">ব্যবহার করার জন্য একটি ওয়েব ব্রাউজার খুঁজে পাওয়া যায়নি।</string>
<string name="error_empty">এই জায়গা খালি হতে পারে না।</string>
<plurals name="favs">
<item quantity="one"><b>%1$s</b>টি পছন্দ</item>
<item quantity="other"><b>%1$s</b>টি পছন্দ</item>
<item quantity="one">&lt;b>%1$s&lt;/b>টি পছন্দ</item>
<item quantity="other">&lt;b>%1$s&lt;/b>টি পছন্দ</item>
</plurals>
<string name="confirmation_domain_unmuted">%s দৃশ্যমান</string>
<string name="notification_subscription_format">%s পোস্ট করেছে</string>
Expand Down Expand Up @@ -407,8 +407,8 @@
<string name="action_subscribe_account">সদস্যতা</string>
<string name="action_unsubscribe_account">সদস্যতা বাতিল</string>
<plurals name="reblogs">
<item quantity="one"><b>%s</b> বুস্ট</item>
<item quantity="other"><b>%s</b> বুস্ট</item>
<item quantity="one">&lt;b>%s&lt;/b> বুস্ট</item>
<item quantity="other">&lt;b>%s&lt;/b> বুস্ট</item>
</plurals>
<string name="account_moved_description">%1$s স্থানান্তরিত হয়েছে এখানে:</string>
<string name="post_media_attachments">সংযুক্তি</string>
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values-bn-rIN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@
<string name="unpin_action">আনপিন</string>
<string name="pin_action">পিন</string>
<plurals name="favs">
<item quantity="one"><b>%1$s</b> প্রিয়</item>
<item quantity="other"><b>%1$s</b> পছন্দসই</item>
<item quantity="one">&lt;b>%1$s&lt;/b> প্রিয়</item>
<item quantity="other">&lt;b>%1$s&lt;/b> পছন্দসই</item>
</plurals>
<plurals name="reblogs">
<item quantity="one"><b>%s</b> বুস্ট</item>
<item quantity="other"><b>%s</b> বুস্ট</item>
<item quantity="one">&lt;b>%s&lt;/b> বুস্ট</item>
<item quantity="other">&lt;b>%s&lt;/b> বুস্ট</item>
</plurals>
<string name="title_reblogged_by">দ্বারা সর্মথন</string>
<string name="title_favourited_by">দ্বারা পছন্দ</string>
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@
<string name="pref_title_absolute_time">Utilitzar el temps absolut</string>
<string name="label_remote_account">La informació de sota pot mostrar el perfil incomplert de l\'usuari. Clica per obrir el perfil complert al navegador.</string>
<plurals name="favs">
<item quantity="one"><b>%1$s</b> Favorit</item>
<item quantity="other"><b>%1$s</b> Favorits</item>
<item quantity="one">&lt;b>%1$s&lt;/b> Favorit</item>
<item quantity="other">&lt;b>%1$s&lt;/b> Favorits</item>
</plurals>
<plurals name="reblogs">
<item quantity="one"><b>%s</b> impuls</item>
<item quantity="other"><b>%s</b> impulsos</item>
<item quantity="one">&lt;b>%s&lt;/b> impuls</item>
<item quantity="other">&lt;b>%s&lt;/b> impulsos</item>
</plurals>
<string name="title_reblogged_by">Impulsat per</string>
<string name="title_favourited_by">Marcat favorit per</string>
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values-ckb/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@
<string name="title_favourited_by">پەسەندکراوە لەلایەن</string>
<string name="title_reblogged_by">پۆست کراوەتەوە لەلایەن</string>
<plurals name="reblogs">
<item quantity="one"><b>%s</b> پۆستکردنەوە</item>
<item quantity="other"><b>%s</b> پۆستکردنەوە</item>
<item quantity="one">&lt;b>%s&lt;/b> پۆستکردنەوە</item>
<item quantity="other">&lt;b>%s&lt;/b> پۆستکردنەوە</item>
</plurals>
<plurals name="favs">
<item quantity="one"><b>%1$s</b> دڵخواز</item>
<item quantity="other"><b>%1$s</b> دڵخواز</item>
<item quantity="one">&lt;b>%1$s&lt;/b> دڵخواز</item>
<item quantity="other">&lt;b>%1$s&lt;/b> دڵخواز</item>
</plurals>
<string name="pin_action">Pin</string>
<string name="unpin_action">لابردن</string>
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@
<string name="unpin_action">Odepnout</string>
<string name="pin_action">Připnout</string>
<plurals name="favs">
<item quantity="one"><b>%1$s</b> oblíbení</item>
<item quantity="few"><b>%1$s</b> oblíbení</item>
<item quantity="other"><b>%1$s</b> oblíbení</item>
<item quantity="one">&lt;b>%1$s&lt;/b> oblíbení</item>
<item quantity="few">&lt;b>%1$s&lt;/b> oblíbení</item>
<item quantity="other">&lt;b>%1$s&lt;/b> oblíbení</item>
</plurals>
<plurals name="reblogs">
<item quantity="one"><b>%s</b> boost</item>
<item quantity="few"><b>%s</b> boosty</item>
<item quantity="other"><b>%s</b> boostů</item>
<item quantity="one">&lt;b>%s&lt;/b> boost</item>
<item quantity="few">&lt;b>%s&lt;/b> boosty</item>
<item quantity="other">&lt;b>%s&lt;/b> boostů</item>
</plurals>
<string name="title_reblogged_by">Boostnuto uživatelem</string>
<string name="title_favourited_by">Oblíbeno uživatelem</string>
Expand Down
24 changes: 12 additions & 12 deletions app/src/main/res/values-cy/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,12 @@
<string name="mute_domain_warning">Ydych chi\'n siŵr yr hoffech chi flocio %s gyfan\? Fyddwch chi ddim yn gweld dim cynnwys o\'r parth hwnnw mewn unrhyw ffrwd gyhoeddus na chwaith yn eich hysbysiadau. Bydd eich dilynwyr o\'r parth hwnnw yn cael eu dileu.</string>
<string name="duration_indefinite">Dim diwedd</string>
<plurals name="favs">
<item quantity="zero"><b>%1$s</b> Ffefryn</item>
<item quantity="one"><b>%1$s</b> Ffefryn</item>
<item quantity="two"><b>%1$s</b> Ffefryn</item>
<item quantity="few"><b>%1$s</b> Ffefryn</item>
<item quantity="many"><b>%1$s</b> Ffefryn</item>
<item quantity="other"><b>%1$s</b> Ffefryn</item>
<item quantity="zero">&lt;b>%1$s&lt;/b> Ffefryn</item>
<item quantity="one">&lt;b>%1$s&lt;/b> Ffefryn</item>
<item quantity="two">&lt;b>%1$s&lt;/b> Ffefryn</item>
<item quantity="few">&lt;b>%1$s&lt;/b> Ffefryn</item>
<item quantity="many">&lt;b>%1$s&lt;/b> Ffefryn</item>
<item quantity="other">&lt;b>%1$s&lt;/b> Ffefryn</item>
</plurals>
<string name="description_visibility_direct">Uniongyrchol</string>
<string name="compose_save_draft_loses_media">Cadw drafft? (Bydd atodiadau\'n cael eu lanlwytho eto pan fyddwch chi\'n adfer y drafft.)</string>
Expand Down Expand Up @@ -425,12 +425,12 @@
<string name="notification_report_name">Adroddiadau</string>
<string name="label_remote_account">Gall y wybodaeth isod adlewyrchu proffil y defnyddiwr yn anghyflawn. Pwyswch i agor proffil llawn yn y porwr.</string>
<plurals name="reblogs">
<item quantity="zero"><b>%s</b> Hybiau</item>
<item quantity="one"><b>%s</b> Hwb</item>
<item quantity="two"><b>%s</b> Hwb</item>
<item quantity="few"><b>%s</b> Hwb</item>
<item quantity="many"><b>%s</b> Hwb</item>
<item quantity="other"><b>%s</b> Hwb</item>
<item quantity="zero">&lt;b>%s&lt;/b> Hybiau</item>
<item quantity="one">&lt;b>%s&lt;/b> Hwb</item>
<item quantity="two">&lt;b>%s&lt;/b> Hwb</item>
<item quantity="few">&lt;b>%s&lt;/b> Hwb</item>
<item quantity="many">&lt;b>%s&lt;/b> Hwb</item>
<item quantity="other">&lt;b>%s&lt;/b> Hwb</item>
</plurals>
<string name="conversation_1_recipients">%1$s</string>
<string name="description_post_edited">Golygwyd</string>
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@
<string name="action_open_reblogger">Autor*in des geteilten Beitrags öffnen</string>
<string name="pref_title_public_filter_keywords">Öffentliche Timelines</string>
<plurals name="favs">
<item quantity="one"><b>%1$s</b> Favorit</item>
<item quantity="other"><b>%1$s</b> Favoriten</item>
<item quantity="one">&lt;b>%1$s&lt;/b> Favorit</item>
<item quantity="other">&lt;b>%1$s&lt;/b> Favoriten</item>
</plurals>
<string name="title_reblogged_by">Geteilt von</string>
<string name="description_post_media">Medien: %s</string>
Expand Down Expand Up @@ -380,8 +380,8 @@
<string name="pref_title_gradient_for_media">Farbverlauf für verborgene Medien anzeigen</string>
<string name="action_unmute_domain">%s nicht mehr stummschalten</string>
<plurals name="reblogs">
<item quantity="one"><b>%s</b>-mal geteilt</item>
<item quantity="other"><b>%s</b>-mal geteilt</item>
<item quantity="one">&lt;b>%s&lt;/b>-mal geteilt</item>
<item quantity="other">&lt;b>%s&lt;/b>-mal geteilt</item>
</plurals>
<string name="pref_main_nav_position">Position der Hauptnavigation</string>
<string name="dialog_mute_hide_notifications">Benachrichtigungen ausblenden</string>
Expand Down
40 changes: 20 additions & 20 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,14 @@
<string name="unpin_action">No fijar</string>
<string name="pin_action">Fijar</string>
<plurals name="favs">
<item quantity="one"><b>%1$s</b> Favorito</item>
<item quantity="many"><b>%1$s</b> Favoritos</item>
<item quantity="other"><b>%1$s</b> Favoritos</item>
<item quantity="one">&lt;b>%1$s&lt;/b> Favorito</item>
<item quantity="many">&lt;b>%1$s&lt;/b> Favoritos</item>
<item quantity="other">&lt;b>%1$s&lt;/b> Favoritos</item>
</plurals>
<plurals name="reblogs">
<item quantity="one"><b>%s</b> Impulso</item>
<item quantity="many"><b>%s</b> Impulsos</item>
<item quantity="other"><b>%s</b> Impulsos</item>
<item quantity="one">&lt;b>%s&lt;/b> Impulso</item>
<item quantity="many">&lt;b>%s&lt;/b> Impulsos</item>
<item quantity="other">&lt;b>%s&lt;/b> Impulsos</item>
</plurals>
<string name="title_reblogged_by">Impulsado por</string>
<string name="title_favourited_by">Marcado como favorito por</string>
Expand Down Expand Up @@ -623,7 +623,7 @@
<string name="notification_severed_relationships_user_domain_block_body">Bloqueaste el dominio</string>
<string name="notification_severed_relationships_account_suspension_body">Un moderador suspendió la cuenta</string>
<string name="notification_severed_relationships_unknown_body">Motivo desconocido</string>
<string name="notification_severed_relationships_format">Se rompió la relación con <b>%1$s</b></string>
<string name="notification_severed_relationships_format">Se rompió la relación con &lt;b>%1$s&lt;/b></string>
<string name="notification_severed_relationships_name">Relaciones rotas</string>
<string name="notification_severed_relationships_description">Notificaciones de relaciones rotas</string>
<string name="poll_show_votes">Mostrar votos</string>
Expand All @@ -638,7 +638,7 @@
<string name="error_media_uploader_upload_not_found_fmt">no se encontró la subida de medios con ID de %1$s</string>
<string name="error_prepare_media_unknown_file_size">no se pudo determinar el tamaño del archivo</string>
<string name="error_prepare_media_unknown_mime_type">se desconoce el tipo de archivo</string>
<string name="preview_card_byline_fediverse_account_fmt">Por <b>%1$s</b>. Ver más publicaciones</string>
<string name="preview_card_byline_fediverse_account_fmt">Por &lt;b>%1$s&lt;/b>. Ver más publicaciones</string>
<string name="action_open_byline_account">Mostrar el perfil del autor del artículo</string>
<string name="action_open_link">Abrir enlace</string>
<string name="compose_warn_language_dialog_title">Comprueba el idioma de la publicación</string>
Expand Down Expand Up @@ -800,19 +800,19 @@
<string name="pref_account_notification_filters_label_not_followed">… que no sigues</string>
<string name="pref_account_notification_filters_label_younger_30d">… creadas en los últimos 30 días</string>
<string name="pref_account_notification_filters_label_limited_by_server">… limitadas por tus moderadores</string>
<string name="account_filter_placeholder_type_favourite_fmt">Un usuario de <b>%1s</b> marcó como favorita tu publicación</string>
<string name="account_filter_placeholder_type_follow_request_fmt">Solicitud de seguimiento de un usuario de <b>%1s</b></string>
<string name="account_filter_placeholder_type_mention_fmt">Un usuario de <b>%1s</b> te mencionó</string>
<string name="account_filter_placeholder_type_reblog_fmt">Un usuario de <b>%1s</b> impulsó tu publicación</string>
<string name="account_filter_placeholder_label_domain">De un usuario de <b>%1s</b></string>
<string name="account_filter_placeholder_type_follow_fmt">Un usuario de <b>%1s</b> te siguió</string>
<string name="account_filter_placeholder_label_not_following">Filtrado porque: <b>no le sigues</b></string>
<string name="account_filter_placeholder_type_favourite_fmt">Un usuario de &lt;b>%1s&lt;/b> marcó como favorita tu publicación</string>
<string name="account_filter_placeholder_type_follow_request_fmt">Solicitud de seguimiento de un usuario de &lt;b>%1s&lt;/b></string>
<string name="account_filter_placeholder_type_mention_fmt">Un usuario de &lt;b>%1s&lt;/b> te mencionó</string>
<string name="account_filter_placeholder_type_reblog_fmt">Un usuario de &lt;b>%1s&lt;/b> impulsó tu publicación</string>
<string name="account_filter_placeholder_label_domain">De un usuario de &lt;b>%1s&lt;/b></string>
<string name="account_filter_placeholder_type_follow_fmt">Un usuario de &lt;b>%1s&lt;/b> te siguió</string>
<string name="account_filter_placeholder_label_not_following">Filtrado porque: &lt;b>no le sigues&lt;/b></string>
<string name="notification_unknown">Tipo de notificación desconocido</string>
<string name="pref_account_notification_filters_subtitle">Qué debería ocurrir con las notificaciones de cuentas…</string>
<string name="pref_title_account_notification_filters">Filtros de notificaciones</string>
<string name="preview_card_byline_name_only_fmt">Por <b>%1$s</b></string>
<string name="preview_card_byline_name_only_fmt">Por &lt;b>%1$s&lt;/b></string>
<string name="action_timeline_link">Publicaciones acerca de este enlace</string>
<string name="account_filter_placeholder_label_younger_30d">Filtrado porque: <b>creada en los últimos 30 días</b></string>
<string name="account_filter_placeholder_label_limited_by_server">Filtrado porque: <b>limitada por tus moderadores</b></string>
<string name="preview_card_timeline_link_fmt">Ver <b>%1$s</b> publicaciones sobre este enlace</string>
</resources>
<string name="account_filter_placeholder_label_younger_30d">Filtrado porque: &lt;b>creada en los últimos 30 días&lt;/b></string>
<string name="account_filter_placeholder_label_limited_by_server">Filtrado porque: &lt;b>limitada por tus moderadores&lt;/b></string>
<string name="preview_card_timeline_link_fmt">Ver &lt;b>%1$s&lt;/b> publicaciones sobre este enlace</string>
</resources>
8 changes: 4 additions & 4 deletions app/src/main/res/values-eu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@
<string name="filter_dialog_whole_word_description">Gako-hitza edo esaldia alfanumerikoa denean bakarrik, hitz osoarekin bat datorrenean bakarrik aplikatuko da</string>
<string name="filter_add_description">Iragazteko esaldia</string>
<plurals name="favs">
<item quantity="one">Gogoko <b>%1$s</b></item>
<item quantity="other"><b>%1$s</b> Gogoko</item>
<item quantity="one">Gogoko &lt;b>%1$s&lt;/b></item>
<item quantity="other">&lt;b>%1$s&lt;/b> Gogoko</item>
</plurals>
<plurals name="reblogs">
<item quantity="one">Bultzada <b>%s</b></item>
<item quantity="other"><b>%s</b> Bultzada</item>
<item quantity="one">Bultzada &lt;b>%s&lt;/b></item>
<item quantity="other">&lt;b>%s&lt;/b> Bultzada</item>
</plurals>
<string name="title_reblogged_by">Bultzatuta</string>
<string name="title_favourited_by">Gogokoa</string>
Expand Down
Loading

0 comments on commit edc7692

Please sign in to comment.