Jump to content

ngram

Friends
  • Posts

    37
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ngram's Achievements

  1. ngram

    Translating IPB3

    New version 1.0.1 attached with only one change to get rid of the "Out of date" translated entries: Now inserts/updates the "word_custom_version" field from version number found in "word_default_version" fields for all inserted/modified entries. To update the new translations (e.g. for 3.0.1) from the previous cache files ( e.g. for 3.0.0, assuming they contain up-to-date information for this version), you have to: a) copy your (translated) cached files for the previous version to cache/lang_cache/<id of foreign language>/prev_version b) DELETE ALL entries for the foreign language from IPB database (e.g. by running a "DELETE FROM `ibf_core_sys_lang_words` WHERE lang_id=<id of foreign language>" query OR (if you don't have access to MySQL/phpmyadmin by deleting the foreign language and re-creating it-although the latter is not very nice because the <id of foreign language> will change!) c) Install the hook and Go to "Manage Languages" d) Uninstall the hook (to avoid running it again) I am aware that this procedure is probably considered "quite unorthodox" according to IPB staff, but it works fine for me and I think it facilitates translation updates and team work for translating IPB cache files(instead of using ACP). hookUpdateTranslations.xml
  2. ngram

    Translating IPB3

    I had a similar problem here, and since I got no answer to my post and after seeing the recently posted "Synchronize Wordpacks for IPB 3.0 RC1 (v 1.0.0)" Hook, I decided to modify it, so that I can reuse my old IPB2.3.6 board translations. During the process, I saw that "Synchronize Wordpacks" required a lot of queries, so I decided to change it a bit, by using php arrays instead: probably this makes it a bit faster. I could not avoid multiple insert or update queries though: I really don't know how to do batch (array) insert/update queries in IPB style(if this is possible somehow). Instructions are provided as comments in the start of the file of the hook. The Hook did a very nice work for me and updated my previous IPB2.3.6 translation! Send your comments/questions here (or to the other thread) or and if some of you find it useful, I can upload it to the Downloads section. hookUpdateTranslations.xml
×
×
  • Create New...