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

Translations for "StartupHints" that are not in the ts files #794

Open
kaamui opened this issue Aug 30, 2023 · 5 comments
Open

Translations for "StartupHints" that are not in the ts files #794

kaamui opened this issue Aug 30, 2023 · 5 comments

Comments

@kaamui
Copy link
Member

kaamui commented Aug 30, 2023

Hi,

I just wanted to point out the community helping us with translations, that with the 1.7.0 comes new web pages welcoming the user in the app and providing some basic knowledge on "how to do basic things" in OpenBoard.

These pages need translation in every language possible, but contrary to the rest of the app, they are not referenced in .ts files. The pages to translate are located here

A smarter way to handle translations in this directory should be possible, but I could not look at it so for now, every translation will need a full copy of the en folder (or any of the 4 officials folders en, fr, de, and it).

Note that it and de are not up-to-date.

Please ask questions if you have any doubt on how to push a PR with these modifications.

Thank you all for your work : you help OpenBoard (a free, open-source application for schools) to shine in every languages and countries we sadly cannot support more directly.

There's not much we can do to reward your efforts except to thank you. Everyone helping with translations is constantly added to the "Credits" tab, in the preferences window of the application 🥇

Did I say thank you ? 😄

Thank you !!

@ovari
Copy link
Contributor

ovari commented Sep 3, 2023

@kaamui can you please create a hu folder and files (from en source) that translations can be entered? Thank you

@kaamui
Copy link
Member Author

kaamui commented Sep 3, 2023

Hi @ovari,

You can do it yourself ! Just go on the resources/StartupHints/locales folder and copy-paste the en folder, then you just have to translate it and submit it via a PR !

@ovari
Copy link
Contributor

ovari commented Sep 3, 2023

@kaamui we do everything in the Firefox web browser. Don't know how to copy and paste using the web browser. Can you please create hu folder? Thank you

@kaamui
Copy link
Member Author

kaamui commented Sep 11, 2023

@ovari you'll have to do it yourself, unfortunately. Please take example on #798 for how to proceed. You just have to :

  • download OpenBoard's source code
  • go to startupHints/locales
  • copy-paste the en folder and rename it with hu
  • make your translations in the html files (from 1.html to 12.html + error.html)
  • submit the changes with a PR

@letsfindaway
Copy link
Collaborator

If - for whatever reason - you do not want to clone the repository to your computer, you can still make everything in the browser:

  • Create a fork.
  • Switch to the dev branch by selecting it from the drop-down menu.
  • Make sure your dev branch is up-to-date. If not, click "Sync fork":

    grafik
  • Click on the dropdown menu showing the dev branch. Enter a new branch name for your work and create that branch.
  • Open the first file (OpenBoard/resources/startupHints/locales/en/1.html) and click "Copy raw file".

    grafik
  • Navigate to the locales folder on the lefthand folder pane.
  • Click on the + sign next to the branch dropdown or on the "Add file" button on the top right and select "Create file".
  • Enter the folder name and the file name: hu/1.html.
  • Paste the copied file contents.
  • Apply your translation changes.
  • Click on Save.
  • Do similar things for all the other files.

Note: this way each file gets an individual commit, which is not optimal. During merging, @kaamui could however choose to squash all these commits into one.

2nd note: I would still recommend to clone the repository, do the changes on your computer and then commit and push your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants