hajkmap / Hajk

A modern, full-featured OpenLayers based map viewer and editor
MIT License
123 stars 47 forks source link

Internationalize and localize Hajk #502

Open jacobwod opened 4 years ago

jacobwod commented 4 years ago

Currently all text strings in Hajk are hard-coded in Swedish. To make this project attract more users and developers, it is essential that the software is engineered in a way that allows for easy localization.

Built-in localization that adapts Hajk's UI according to the user's language preferences is another convenient side effect of this feature.

For more info, see this wiki article.

Below are some articles with examples of different solutions that must be compared before we decide which way to go. The list is in no particular order.

Hallbergs commented 3 years ago

I've done some tests in this branch: https://github.com/hajkmap/Hajk/tree/feature/502-internationalization

First translation added ("core.drawerToggleButton.plugins", Kartverktyg in sv and Tools in en)

The solution uses i18next, react-i18next, and i18next-browser-languagedetector

jacobwod commented 3 years ago

C'est wonderful! 😃

AndreasAtakan commented 3 years ago

What's the status on this?

I just created a new issue asking about this: https://github.com/hajkmap/Hajk/issues/942

Hallbergs commented 3 years ago

The current status is that the core functionality (switching language in the UI or in the map configuration) has been added, and a couple of components have been migrated to use I18n. Unfortunately, the migration has been put on hold due to other priorities.

However, i still think it is important that this gets done asap, so that organizations outside Sweden can use Hajk! My guess is that this will get done in q1-q2 2022.

jacobwod commented 3 years ago

I second @Hallbergs opinion: this is a priority that has been put on hold but we're working on sorting the out the blocking parts so the I18N work can continue. 👍

matself commented 3 years ago

Hi! I’d be happy to provide an english translation. But I am unable to find any language files. I have just done Geonetwork (on Transifex) and Mapstore (file-based) to swedish. And a revised Geoserver swedish UI is coming up, as soon as the Transifex integration has been sorted out.

HĂ€lsning / Regards Mats.E

Skickat frÄn min / Sent from my iPad, UrsÀkta att jag Àr kortfattad / Excuse my brevity.

2 dec. 2021 kl. 08:16 skrev Jacob WodzyƄski @.***>:

ï»ż I second @Hallbergs opinion, this is a priority that has been put on hold but we're working on sorting the out the blocking parts so the I18N work can continue. 👍

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Hallbergs commented 3 years ago

Translation files (eng and swe) exists on the feature branch for the i18n migration.

This branch is on-hold for the moment since we're currently migrating the application to MUI5, and want to avoid too many merge conflicts. The plan is to get the MUI5 migration done, then merge the the MUI5 migration into the I18n-feature-branch, and then continue the I18n migration.

matself commented 3 years ago

I see. I looked in master only and found no language files at all.

HĂ€lsning / Regards Mats.E

Skickat frÄn min / Sent from my iPad, UrsÀkta att jag Àr kortfattad / Excuse my brevity.

2 dec. 2021 kl. 10:06 skrev Henrik Hallberg @.***>:

ï»ż Translation files (eng and swe) exists on the feature branch for the i18n migration.

This branch is on-hold for the moment since we're currently migrating the application to MUI5, and want to avoid too many merge conflicts. The plan is to get the MUI5 migration done, then merge the the MUI5 migration into the I18n-feature-branch, and then continue the I18n migration.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

bitmapbulgaria commented 1 year ago

There is introduction translation in Bulgarian, for the future language localization:

https://drive.google.com/file/d/1nN-K4A3ATYo5ULUPlc3m-mj838-OulBw/view?usp=sharing Please, add this to the branch, I'll delete the link after that.

Hallbergs commented 1 year ago

Woho! Nice job! image

I just pushed it to the branch, so you can go ahead and delete the file.

bitmapbulgaria commented 1 year ago

Thanks! Will do some polishing, when #502 is complete, but for now is good enough.

mkoskl commented 1 year ago

Is this still relevant issue? Are you working on this?

jacobwod commented 1 year ago

The issue is relevant, but the current maintainers and organisations we represent have not had the resources to implement this ourselves.

Being an open source product, Hajk looks forward to any contributions, including (but not limited to) internationalization efforts. The Hajk maintainers will certainly pay attention to any PR addresses this.

mkoskl commented 1 year ago

Is there any documentation where I could at least look at it? What it requires etc.