Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Weblate bugs and other translation related issues #2944

Closed
wants to merge 31 commits into from

Conversation

B0pol
Copy link
Member

@B0pol B0pol commented Jan 10, 2020

  • Videos in search -> three dots will be translatable in Weblate (it was not translated and not set translatable="false")
  • seek duration (duration for double tap in player) will be translatable in Weblate
  • made default_content_value and default_country_value untranslatable as it should be
  • deleted the strings comments, which was unused and untranslated, to prevent a bug like we have and I just fixed with videos string

Fixes #3025

@Stypox Stypox added the localisation / translation Everything that has to do with translations or Weblate label Jan 12, 2020
@B0pol B0pol changed the title Fixed translation bugs Fixed Weblate bugs and other translation related issues Jan 19, 2020
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@@ -589,4 +587,11 @@
<string name="downloads_storage_use_saf_title">Use SAF</string>
<string name="downloads_storage_use_saf_summary">The Storage Access Framework allows downloads to an external SD card.\nNote: some devices are not compatible</string>
<string name="choose_instance_prompt">Choose an instance</string>
<string name="videos_fixed">Videos</string>
<string name="five_seconds">5 seconds</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't be %s seconds better here? We would need to add the seek_duration_description items dynamically, but this shouldn't be a problem.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I firstly done that, but there is a problem: summary is now fine, but when you click on the list, it only shows the value (eg 5, 10, 15…), but not seconds anymore.

(I made this with the last commit)

@TobiGr TobiGr added this to the 0.18.3 milestone Jan 28, 2020
B0pol added 2 commits January 29, 2020 21:21
renamed NewPipe's language into App language, and same for all the
concerning thing (keys, comments…)

we now call assureCorrectAppLanguage(CONTEXT) in activities needing it
instead of changeAppLanguage(getAppLocale(CONTEXT), RESOURCES)
changeAppLanguage becomes private.
B0pol and others added 6 commits February 1, 2020 09:44
Changed android.R.string.ok, which is "OK", into R.string.finish, which is also OK, but from our strings
Then for a small amount of languages that don't have Android translation, it will show the good string.
I forgot to change the key here when I renamed it
@B0pol
Copy link
Member Author

B0pol commented Feb 1, 2020

I'm closing this pr as commits are screwed up (I merged locally instead of with github) and I don't know how to fix.
Also, as you can see , it's not showing good.
I don't know how to fix this too.

@B0pol B0pol closed this Feb 1, 2020
@B0pol B0pol deleted the fix_translations branch February 1, 2020 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
localisation / translation Everything that has to do with translations or Weblate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"seconds" string is not available for translation
3 participants