-
Notifications
You must be signed in to change notification settings - Fork 5
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
L10n system #4
Comments
Why should that be implemented? The file system does it quite well. I would import a commit if you migrate the current Code while maintaining backwards compatibility. I will not work on this thought. |
With this system, translations are easier to maintain from the ACP. |
Why are files more complicated? As I said, if you want to change this feel free, but it must be backwards compatible. |
Files are not more complicated, but with the database it is easier, because all strings and their translations are at one place (1 table). So you only need to SELECT, INSERT or UPDATE. Additionally, coders don't need to work on language files anymore: They can write directly, what they want to "say".
I will do it, later. But backwards compatible to what?
OK, I agree. :) |
Backwards compatibility to the current system, or the best thing would be an automated import. |
it is unnecessary to always invite all the strings from the db. I think file system is ok. |
Caching! |
Caching ? Haben wir doch auch so, nur das wir uns den Zugriff auf die Datenbank sparen. Abgesehen davon Wir unterstützen, in der jetzigen Version lediglich Lokalisierung, nicht Internationalisierung. |
Ja, so ist es (So wie in 0.7 die Settings-Files erstellt werden). Nur arbeiten wir nicht mehr mit "Variablen", sondern mit dem Text selbst und dessen Übersetzung.
In der Datenbank kann man die Texte aber besser verwalten, da du nur SELECT, INSERT oder UPDATE machen musst. Außerdem kannst du in der Datenbank viel besser nach noch nicht übersetzten Texten suchen.
Das kann ja später noch dazukommen, aber im Moment brauchen wir es nicht, das stimmt. |
ich würde es gern für die nächste version aufheben. |
Use a database-based L10n system like in Drupal.
See https://github.com/iceflame-net/Webwork/blob/master/includes/classes/Lang.class.php
The text was updated successfully, but these errors were encountered: