Use gettext() for I18N, instead of php arrays

Registered by fisharebest

Convert the translations in webtrees from PHP arrays to gettext().

Step 1 will be a simple one-to-one replacement of existing strings

Step 2 will be to create translated lookup tables, e.g. of facts, gedcom keywords, etc. The current use of these is inconsistent and has unnecessary repetition. Initially, put these as arrays in config_data.php. (Maybe later convert these to functions, to reduce overhead of initialisation??)

Step 3 will require changes to the code to make use of gettext() facilities. For example, plural rules, contexts (e.g how to translate second, when it could be either first/second/third or hour/minute/second).

Step 4 will require changes to the code to replace text fragments with complete phrases/sentences. For example, using "%s (%s)" instead of $name.' ('.$id.')'.

Blueprint information

Status:
Complete
Approver:
webtrees team
Priority:
High
Drafter:
fisharebest
Direction:
Approved
Assignee:
fisharebest
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
None
Started by
fisharebest
Completed by
fisharebest

Related branches

Sprints

Whiteboard

This blueprint is effectively completed. Any further issues should be raised as bugs.

[kiwi] - a big job done really well, thanks Greg.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.