Fork me on GitHub
Subscribe 1

Ticket #498 (fixed task)

Convert files to new translation system

  • Created: 2011-09-21 22:17:54
  • Reported by: Franz
  • Assigned to: Franz
  • Milestone: 2.0-alpha1
  • Component: localization
  • Priority: normal

The new translation system is basically done, we now need to convert all the files to the new system.

This includes changing variables like $lang_misc to loading the "misc" language file and then replacing all the variables with a call of $lang->t() (hint: regular expressions do help).

A quick search shows me language strings in these files:

  • admin_bans.php

  • admin_categories.php

  • admin_censoring.php

  • admin_forums.php

  • admin_groups.php

  • admin_index.php

  • admin_maintenance.php

  • admin_options.php

  • admin_permissions.php

  • admin_ranks.php

  • admin_reports.php

  • admin_users.php

  • delete.php

  • edit.php

  • extern.php

  • footer.php

  • help.php

  • index.php

  • install.php

  • login.php

  • misc.php

  • moderate.php

  • post.php

  • profile.php

  • register.php

  • search.php

  • userlist.php

  • viewforum.php

  • viewtopic.php

  • include/common_admin.php

  • include/functions.php

  • include/parser.php

Very importantly, the language files also need to be converted to Gettext files. For now, we will store both the po and the mo files in the language directory, until we find a proper solution.

For generating the mo files, I recommend Poedit.

History

Franz 2011-09-25 20:50:46

Commit 6373198 to fluxbb fluxbb-2.0

#498: Convert index.php language file.

Franz 2011-09-25 20:51:59

  • Description changed. (Diff)
  • Owner set to Franz.

Franz 2011-10-04 01:30:34

Commit 89d19d2 to fluxbb fluxbb-2.0

#498: Convert remaining front-end files to use the new language system.

I will upload the corresponding Gettext files tomorrow.

Franz 2011-10-04 01:32:53

  • Description changed. (Diff)

That takes care of all the front-end files.

Franz 2011-10-09 20:57:14

Commit 9a28808 to fluxbb fluxbb-2.0

#498: Upload Gettext language files for frontend.

Franz 2011-10-09 21:31:02

Commit ef68eef to fluxbb fluxbb-2.0

#498: Fix some mistakes from the last commits.

Namely, loading language files with the new approach in post.php and moderate.php.

Franz 2011-10-09 21:36:50

Commit fff4fe1 to fluxbb fluxbb-2.0

#498: Convert admin backend files to use new language system, too.

Franz 2011-10-09 21:38:20

  • Description changed. (Diff)

And admin files are done, too.

Franz 2011-10-10 12:58:03

Commit 6edb8d5 to fluxbb fluxbb-2.0

#498: "Convert" two more files to use the new language system.

Franz 2011-10-10 13:00:13

Commit 8463ede to fluxbb fluxbb-2.0

#498: Delete old PHP-based language files.

Franz 2011-10-10 13:01:20

  • Description changed. (Diff)
  • Status changed from open to fixed.

And with that, I'm done. I hope I didn't make too many mistakes and the language files got converted properly. This will certainly be fun.

Franz 2011-10-10 13:57:06

Commit 6541d5e to fluxbb fluxbb-2.0

Do not include old common language file.

Related to #498.