Comments (12)
yep (next week)
from geokrety-website.
Hi @kumy .
I need your opinion.
about this usecase: waypoint search gives one result, example:
In this case, szukaj-ajax.php
append 2 informations
Exemple:
- $typ == "Multicache"
- $kraj == "Österreich"
What do you think about using some kind of dynamic translation for theses 2 fields values ?
we could also mount a translation from this two codes :
_('WPTYP_'.$typ)_
_('WPKRAJ_'.$kraj)_
In our dictionary we will have some entries starting with prefix "WPTYP_" or "WPKRAJ_" to make frontier between waypoint data related entries and geokrety website legacy entries.
Seems the distinct values for this 2 fields are not so big: 10 cache type (Typ) and 35 country (kraj)
This result in adding 45 entry to crowdin.
What do you think ?
from geokrety-website.
So I think we're no so far (for translations only, I need to work a little bit more on webpage)
https://github.com/geokrety/geokrety-website/blob/perso/boly/website/templates/waypointy-translations.html
is generated by
from geokrety-website.
Hum, nice catch. Those comes directly from the database. The database is synchronized from different opencaching sites. First step would be to synchronize those with English terms instead of "native opencaching site language"? Then we can think of a way to translate. It'll not be that easy. @harrieklomp please don't be frustrated if we don't fix this using the current website. @harrieklomp, @boly38 If you agree, I would close it as "Won't do - in current site version".
from geokrety-website.
We could maybe add a fieldset label 'opencaching results' (adapt wording) to mark the frontier between geokrety and external data.
and then consider this fieldset out of Geokrety responsibility: do not translate the content.
(sorry I close by error)
from geokrety-website.
@boly38 would you open a pull request / post a picture of the result?
from geokrety-website.
My personal draft / note:
- import waypoint oc
todo list before PR:
- add country translations
- add cache type translations
- fix crlf in sql
- fix template html element
- add note in contrib md about scrpts and php_cs
and translation mechanism [ ] add country code
from geokrety-website.
Yep, go for it. Don't forget to add new strings "in English" and probably in a dedicated file as current strings are extracted from source code and not database… A yaml
file would be perfect for this,
from geokrety-website.
probably in a dedicated file as current strings are extracted from source code and not database… A yaml file would be perfect for this,
not understand that point, sorry
from geokrety-website.
The strings uploaded to crowdin are - until now - extracted from source code using tsmarty2c
and xgettext
. See
geokrety-website/scripts/export-translations-github.sh
Lines 27 to 29 in 8367a4d
If I'm not mistaken, you want to translate some strings that come from the database (table gk-waypointy
). The point I raised was to solve this. "How to inform crowdin about those strings coming from the database?".
So, I suggest to extract/copy those 45 strings out of the database as a static file, as yaml
for example. And use a tool to convert .yml
file to .po
file, like yaml2po. Then merge all our 3 files into one and finally upload it to crowdin. All this should happen in the script cited above L27-29.
Of course, the strings in the database need to be translated into English first, and also be in English in the .yml
file.
from geokrety-website.
ok thanks for your lights. I will see that and follow this way
from geokrety-website.
hey, finally we have got
110 countries (result in 79 unique english translations)
See
geokrety-website/docker/mariadb/gk-waypointy-country.sql
Lines 12 to 121 in 754b82a
19 cache types (result in 14 unique english translations)
See
geokrety-website/docker/mariadb/gk-waypointy-type.sql
Lines 12 to 30 in 754b82a
You could put an eye to see any error.
Next step: crowdin input
@kumy following you advice, and out of error, seems we are not already using yaml2po
, BTW we already have some translations detected by tsmarty2c
from simple html template. I think first I will generate simple html with template for each.
from geokrety-website.
Related Issues (20)
- [staging] post login - confirmation link not received HOT 3
- [staging] post login - confirmation link message not translated HOT 3
- log a geokret (move) - form - log date HOT 2
- log a geokret (move) - form - log comment limit - 500 HOT 2
- geokrety details - update comment - add big image - load forever HOT 4
- Set a Geokrety as private
- Migration to GeoKrety.org v2 - Partners testing
- Account created via OAuth have no password HOT 1
- Validation on saving of "heavy" users raise a memory limit exception HOT 2
- Migration to GeoKrety.org v2 - Switch to branch `main` (aka `new-theme`/ `GKv2`) HOT 5
- Map markers don't apply the color mentioned in legend HOT 2
- Menu for own and other users functions look to similat HOT 2
- Use new c:geo logo in geokrety logbook for logs from c:geo HOT 3
- GeoDashing integration is broken
- Review the repo READMEs HOT 2
- Record failed authentication attempts
- Unable to create Geokret HOT 2
- Amount of visited sites does not increase HOT 2
- Unable to visit a cache HOT 3
- Not full list of caches/GK HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geokrety-website.