tuyau45,
t'm working on it, please give me a few days to test it.

tuyau45 wrote:

What is it for ?

Enables multilanguage support in admin control panel.

Updated to SVN 159

Later this week i'll upload a new mod version. I hope most issues will be addressed smile

Do you plan (when the russians characters will be debuged) to Highligh the topics both in viewtopic.php and search.php ?

If you mean highlighting keywords in search.php when topics are shown as post excerpts, i don't think it's such useful.
These posts is only a filtered part of original messages and many times don't contain searched keywords. But i will consider such an implementation after encoding issues have been fixed.

Regards

Hmm tt works here, i'm a bit confused hmm
Give me some time to test it.

adsh,
I've uploaded an updated mod, please try that too.

BTW i installed punbb + highlight mod using windows-1251 encoding, and tried some russian posts. In fact i've copied and paste messages from your own forum.
Well, it works here, highlighting Russian keywords hmm

What's you apache/php versions ?

I think i know what cause those errors. I'm currently working on this and Russian encoding.
In the meantime, please re-download updated mod and try it for errors.

Regards

Oops sorry you're right adsh, it's a nasty bug neutral
Re-download mod from same url and replace your current search.php, viewtopic.php files with those included in the archive.

Try it and post me a note...

adsh wrote:

And  highlighting not working on NOT first search results pages.

Sorry but could you please explain what you mean ?

When user submit http://site/search.php?action=show_new there are many errors on the page

Hmm, i cannot see that behavior in my own intranet forum. Please tell me, did you install this mod manually or using included files ?

$subject = '<a href="viewtopic.php?id='.$search_set[$i]['tid'].(($hl != '') ? '&hl='.$hl : '').'">'.pun_htmlspecialchars($search_set[$i]['subject']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($search_set[$i]['poster']).'</span>';

As you can see in line 619 there is only a simple IF structure that checks if $hl var exists and is assigned, before using it. Even if this comparison fail, there is no reason for such an error.

Please double check mod installation and post here your findings. Also, are you using any other mods affecting search.php and viewtopic.php ?
According to encoding, unfortunately i cannot do any testing in Russian. All iso-8859-xx and many ANSI encodings i've tried like cp-1252, cp-1253, cp-1255, work fine here.

If any other mod user has any similar problems, please post here a note.

Updated to SVN 153

##
##        Mod title:  Admin CP Localization
##
##      Mod version:      1.0.3
##   Works on PunBB:      1.2.4
##    Based on latest     1.2.4 SVN (153)
##     Release date:      2005-03-23
##           Author:      Sakis (aka SSB) (ssb@in.gr)
##
##      Description:      Searching keywords highlighting mod
##
##   Affected files:      search.php
##                        vewtopic.php
##                        your stylesheet
##
##       Affects DB:      No
##
##            Notes:      Coded with minimum changes to the original PunBB-files.
##                        It highlights all found keywords after a successful searching.
##                        Mod recognizes wildcard and highlights the whole maching words.
##                        It works fine with quoted text and code.
##
##       DISCLAIMER:      Please note that "mods" are not officially supported by
##                        PunBB. Installation of this modification is done at your
##                        own risk. Backup your forum database and any and all
##                        applicable files before proceeding.
##
##
##    Installation: Follow next steps to enable admin CP localization.
##
##    Replace PunBB search.php, viewtopic.php files with those in mod archive
##    Append the following line in \imports\Oxygen_cs.css or your own color scheme stylesheet
##
##    SPAN.hlight {font-weight: bold; COLOR: #FF0000}
##
##    That's all...
##
##    If you want to apply this mod manually, there are two diff files included in archive.
##

This mod highlights all found keywords after a successful searching.
It recognizes wildcard (*), highlighting the whole maching words and works in quoted / code text too.

Highlighting color depends on a CSS entry, you can append in your own color scheme stylesheet.
For example, the next entry appended to style/imports/Oxygen_cs.css diplays keywords bold-red
SPAN.hlight {font-weight: bold; COLOR: #FF0000}

Thia mod has been tested with English amd foreign iso-8859-xx encodings and seems to work just fine.
It was not test extensively with UTF-8 though. If you find any bugs, please post me a note.

Download it!

This mod works with latest PunBB (1.2.4) but it can be easily adapted to any previous and/or future version.
BTW i'd like to see this mod or any other similar, included in PunBB official code. IMHO searching results highlighting, is a must.

Regards

Updated to latest PunBB 1.2.4 (SVN 151)
Only moderate.php changed, because the rest changes were already included from SVN smile
You can redownload it from the same link.

Regards

Rickard, i hope you have your Internet access fixed soon smile

Ataxy wrote:

is there a file to make the mod manually if whe allready have other mod installed

It is possible to do that manually, but not suggested because of many changes.
If your installed mods don't change admin control panel, it's very easy, otherwise you have to use a diff tool, merging my changes to yours. With right tool (eg. Beyond Compare, ExamDiff Pro) it's not that difficult.
BTW i'm preparing a diff report to make things easier...

##
##        Mod title:  Admin CP Localization
##
##      Mod version:      1.0.6
##   Works with PunBB:    1.2.4
##    Based on latest     1.2.4 SVN (159)
##     Release date:      2005-04-05
##           Author:      Sakis (aka SSB) (ssb@in.gr)
##
##      Description:      Localization mod for PunBB administration control panel
##
##   Affected files:      \admin_bans.php
##                        \admin_categories.php
##                        \admin_censoring.php
##                        \admin_forums.php
##                        \admin_groups.php
##                        \admin_index.php
##                        \admin_loader.php
##                        \admin_maintenance.php
##                        \admin_options.php
##                        \admin_permissions.php
##                        \admin_prune.php
##                        \admin_ranks.php
##                        \admin_reports.php
##                        \admin_users.php
##                        \moderate.php                {A few changes to enable IP stats localization)
##                        \include\common_admin.php    {Used by Admin CP)
##                        \lang\English\common.php    (Just the last four lines)
##
##          New files:    \lang\English\adm_bans.php
##                        \lang\English\adm_categories.php
##                        \lang\English\adm_censoring.php
##                        \lang\English\adm_common.php
##                        \lang\English\adm_forums.php
##                        \lang\English\adm_groups.php
##                        \lang\English\adm_index.php
##                        \lang\English\adm_maintenance.php
##                        \lang\English\adm_options.php
##                        \lang\English\adm_permissions.php
##                        \lang\English\adm_prune.php
##                        \lang\English\adm_ranks.php
##                        \lang\English\adm_reports.php
##                        \lang\English\adm_users.php
##
##       Affects DB:      No
##
##            Notes:      Coded with minimum changes to the original PunBB-files.
##                        A few messages have been recoded using sprintf() to 
##                        format message as a single entity, thus giving translators
##                        more freedom.
##
##            Upgrade:      Upgrading modified PunBB isn't an easy task, because ot 
##                        many changes in core files. I hope Rickard, PunBB author
##                        will include this mod in PunBB official code tree.
##
##       DISCLAIMER:      Please note that "mods" are not officially supported by
##                        PunBB. Installation of this modification is done at your
##                        own risk. Backup your forum database and any and all
##                        applicable files before proceeding.
##
##

Installation: Follow next steps to enable admin CP localization.

    1. Install PunBB 1.2.4 as usual.
    2. Unzip MOD file in a temp directory
    3. Copy all included php files in \Upload\ into PunBB root directory, overwriting existed files.
    4. Copy all included files in \lang\ into PunBB \lang\English directory, overwriting existed files.
    5. Copy \include\common_admin.php into PunBB \include\ directory, overwriting existed common_admin.php file.

    When you create your own translations, copy as usual all lang\English\ files into your own lang\directory, including all new adm_xxxx.php language files.

    If you find any missing messages, bugs or any odd behavior of this mod, please post me a note using PunBB forum, or directly to ssb@in.gr

PunBB Admin CP Localization mod, has been written based on latest 1.2.3 - SVN code.

Please read included readme.txt file for installation instructions.
I tried to keep changes to a minimum and follow PunBB official translation method as much as i could. Some messages have been recoded using sprintf() for better formating and translation freedom.

moderate.php has some changes too, to enable user IP / Hostname translation that was missing in official PunBB.
For the same reason, four lines have been appended to common.php language file.

Download it!

Use it with a clean PunBB 1.2.4 installation. All included files are based on official latest 1.2.3 SVN code.

PS: Please give me some time to fix possible bugs, before use it in your stable forum.
Besides those bugs (if reported) I don't expect to change many things so you can start writing your tranlation.
I'm also waiting Rickard's comments and/or suggestions, before declare this mod final smile
If you find any bug, missing or misspelled entry, please post here a note.

Updates: Re-download  update zip from same url

1.0.1
 Added a missing button caption
 Combined two similar strings
Changed files: admin_users.php, adm_users.php

1.0.2
 Replaced admin/mod menu simple caption with sprintf formated string
 Added missing string in censoring
 Added missing string in admin_categories
 Merged two similar strings in one
Changed files: include/common_admin.php, lang/English/common.php, admin_censoring.php, /lang/English/adm_censoring.php, admin_categories.php

1.0.3
 Added missing time/date "current format" message
Changed files: admin_options.php, /lang/English/adm_options.php

1.0.4
 Updated to PunBB 1.2.4 (SVN 151)
 Changed files: moderate.php (the rest 1.2.4 changes were already included)

1.0.5
 Updated to PunBB 1.2.4 (SVN 153)
 Changed files: moderate.php, admin_index.php

1.0.6
 Updated to PunBB 1.2.4 (SVN 159)

Thanks

Just noticed that it is possible to add a new group, with same name as an existing one. (PunBB 1.2.3)
I think it's a bug because code in admin_groups.php supposed it prevents such a case.

18

(12 replies, posted in PunBB 1.2 discussion)

Hmm $lang_common includes only a few of those common strings. Most of the rest are in other lang sources.
For now, i don't use them at'all, saving all admin cp strings in adm_xxxx.php files. IMHO that makes it easier for anyone to include admin localization.
The only minor problem is that there will be some duplicate entries, i mean strings found in both forum and ACP lang files. Not big deal though... It can be fixed in a future revision if is necessary.

Thanks anyway smile

19

(12 replies, posted in PunBB 1.2 discussion)

There are so many strings common in forum and admin CP !
I really don't know what to do with them. Do you think is better use already assigned ones in forum language or reassign them in an admin-only language file ?

For example, terms like forum, admin, go back, save, user, username, post etc., plus many error messages already exist in lang files used by forum itself.

Reassigning them in an admin CP specific language file is easier, because there is no need to include forum lang files and gives more freedom in translation, but... (there is always a ...but smile )

Any suggestion Rickard ?

20

(12 replies, posted in PunBB 1.2 discussion)

I've updated to latest 1.3 dev and included all mods i did so far.
Almost 50% is done. I think, early next week it will be ready.

21

(12 replies, posted in PunBB 1.2 discussion)

Rickard,
I'm working on admin control panel multilanguage support and need some advice.
Is it preferable to use a single language file for the whole administration or use multiple files, same way forum works ?
There are many strings, common to all tasks. Messages like "Yes" "No" "Save" "Delete" etc. Currently i put them in a adm_common.php language file.
The rest messages are stored in multiple files, one per admin task. For example...

admin_categories.php uses adm_categories.php lang file and $lang_adm_categories array

I've started mod using stable 1.2.2 Do you think i should follow 1.3 tree ?

I'd appreciate any comments
Thanks

22

(2 replies, posted in Feature requests)

That's OK Rickard, i'll consider writting a mod smile

I'm working on multilanguage support for Admin CP (version 1.2.2)
Currently using lang_adm_xxxx.php as language include (eg lang_adm_index.php).
$lang_adm_xxxx is strings array containing messages, same naming as that used in forum tranlation.

I hope, when finished, Rickard will use it for future PunBB versions.

Progress: Done!
Now i'm testing it for possible omissions or bugs. You have to wait for a while smile

Any comments or suggestions are welcome

Search string highlighting is very usefull.
Do you have any plans implementing that in a future update ?

25

(6 replies, posted in PunBB 1.2 discussion)

When first tried that, it failed because i had a mistake in markup.
Now it works just fine,

BTW although i do like css and table-less design, reading and understanding someone's else work isn't an easy task.
I hope you will release some kind of PunBB styling guide smile

thanks Paul.