-
Notifications
You must be signed in to change notification settings - Fork 3
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
Incrementor function doesn't work for Internationalisation #26
Comments
It seems to be only a display problem during recording of an HP but not once registration is validated |
I believe I've now fixed this. Or at least, I have as I understand it. The Incrementor function was generating an i18n string, as it is supposed to, but it was only in English. I assumed (wrongly) that the new resource screen would spot this and just use the English string where none exists in other languages, as all other parts of Arches do. However, this wasn't happening. I've replaced a small chunk of code in the incrementor.py file for one that generates an i18n explicitly containing an identical "EAMENA-xxxx" string for every activated language (as defined in settings.py). This stops the 'undefined' string from appearing, although we now have a left-to-right string as a default label in a right-to-left language (Arabic) so I'd be grateful if someone who speaks Arabic could try to create a heritage place in that language and let me know if it's acceptable or not. The new version of the function is on the live database now, but can be rolled back easily if there is a problem. If it's OK then I'll push to the github repo. |
I'll ask one of our colleagues |
So, there is updated code for the incrementor function from Farallon. Let me know if you want it, or if yours is working now.
Best,
-Mike
…---
Dr. Michael Fisher
Group Leader of Digital Archaeology
Department of Archaeology
Max Planck Institute of Geoanthropology
Kahlaische Straße 10
07745 Jena, Germany
+49 3641 686779
On Jul 18, 2023, at 10:44 AM, Thomas Huet ***@***.***> wrote:
I'd be grateful if someone who speaks Arabic could try to create a heritage place in that language and let me know if it's acceptable or not
I'll ask one of our colleagues
—
Reply to this email directly, view it on GitHub<#26 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJZP47TDWNZ46J2PBIPOF5DXQZEFFANCNFSM6AAAAAAZMAQYHY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@nsheldrick says it works now. |
The Incrementor function doesn't create a new EAMENA ID number when the first Add (green button) is done in the Arabic or French localisation of the DB. It will create an ID labeled "undefined":
-غير محدد
![image](https://private-user-images.githubusercontent.com/67924910/246856424-16d58ad4-c35a-43a4-abe2-0d5f0d7bfa58.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxNjk2NDIsIm5iZiI6MTcyMDE2OTM0MiwicGF0aCI6Ii82NzkyNDkxMC8yNDY4NTY0MjQtMTZkNThhZDQtYzM1YS00M2E0LWFiZTItMGQ1ZjBkN2JmYTU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDA4NDkwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3YzJmNTlmMjJmMDAzMzc0ZjFiMjc3OWIyMDRlYTdkOGRjYTk3YTkwMDQ5MjUzMmQ2NmI5ZTMwMjEzNjIzYWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9xxYl2iz75fLTEH8vRhovAN2URCjIrLUu7HZI-J6KnU)
This error is linked with the issue #27 , #30
The text was updated successfully, but these errors were encountered: