Replies: 2 comments 12 replies
-
|
Hi Ronny, This looks promising. Please go ahead and merge into my repo and I'll test it. I have looked into the Swedish translation in your repo and think it covers much more than my sed solution. Though I would like to come back later with some minor adjustments, but let's begin with the current translation. |
Beta Was this translation helpful? Give feedback.
-
|
Great that it works now! The browser is caching the old sv.json file. To see your new translations: Quick fix - force reload: Press Ctrl+Shift+R (or Cmd+Shift+R on Mac) to hard refresh Open browser DevTools (F12) http://your-birdnet-pi/?lang=sv&v=2 Ronny |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Lars,
I've been working on an alternative translation approach for BirdNET-Pi that might interest you.
The Problem
The current sed-based approach works well, but requires re-running 250+ sed commands after every BirdNET-Pi update because the PHP files get overwritten.
The Solution
I've built a JavaScript-based i18n system that:
update.shto re-add the 2 script tagsAvailable Languages
Dutch, Swedish, German, French, Polish, Finnish, Danish (500+ translations each)
Demo
You can see the code and documentation here:
https://github.com/RonnyCHL/Translate
Question
Would you be interested in collaborating on this? I'd be happy to:
Let me know what you think!
Greetings from Ronny
Beta Was this translation helpful? Give feedback.
All reactions