[eMule-Web]  

Zurück   [eMule-Web] > eMule > eMule MODs - Allgemein

eMule MODs - Allgemein Alles zu den eMule-MODs, die unsere Anforderungen für 'saubere' MODs erfüllen.

Antwort
 
LinkBack Themen-Optionen
Alt 2. June 2003, 04:47   #1
Advanced Member
 
Registriert seit: 27.12.2002
Beiträge: 169
Standard: eMule 0.28b-taabmod02 - [06.06.03] Problem: eMule 0.28b-taabmod02 - [06.06.03]



Zitat:
Zitat von taab
Hi all,
It is my first release

It mainly contains new way of handling the multillingual text in eMule.

Look at - exe plus lang files: taab-mod-exe
Look at - sources: taab-mod-sources



EDIT 05.06.2003: Do not use those links. There is new 02 release based on 0.29a release :
Finally integrated into 0.29a.

Look at - exe plus lang files: taab-mod-exe
Look at - sources: taab-mod-sources
EDIT end;





taab-mod-info.txt content (in sources)
ver .01
based on standard 0.28b eMule

1. Main feature is separated resources for strings in XML files.
first of all see discussion http://www.emule-project.net/board/i...ST&f=4&t=19051
XML files are under lang directory.
Main implementation is in eMulei18n.cpp (h).
i18n stands for 'internationalization' - idea brought from i18n used in web-technologies, like Cocoon - see jakarta.apache.org
XML structure very similar to this used in Cocoon for i18n.

String is looked for in the following order:
- in file meessages_custom_lang.xml;
- in file messages_lang.xml;
- in file messages_ENGLISH.xml;
if not found info in Debug log - shouldn't be any however;
Idea of messages_custom_lang.xml is to allow everyone to have his own strings undependent on main source (with corrected errors, etc.)
Easiest way to create custom file is to copy original file, change name, and later on change the content of texts.

XML file looks like:
<?xml version='1.0' encoding='WINDOWS-1252'?>
<catalogue>
<message key='IDP_SOCKETS_INIT_FAILED'><![CDATA[Error initiating the windows sockets.]]></message>
<message key='IDS_ABOUTBOX'><![CDATA[&About eMule...]]></message>
<message key='IDS_HTTPDOWNLOAD_FILESTATUS'><![CDATA[%1 from %2]]></message>
<message key='IDS_HTTPDOWNLOAD_CONNECTED'><![CDATA[Connected to %1]]></message>
...
you are allowed to change only the text in CDATA markup. Don't change anything else (ID, structure), file can be not read into XML parser.

In implementation used is DOMDocument parser (fu.... interface, no normal class wrapper, could use that from C#, but the way of linking must be changed).


XML files are created for all existing langauges in eMule - used some macros and tools and hand as well to convert string table to xmls.

One problem (solved) is slow searching in DOMDocument - so additionaly I added string map to speed up the getresstring function.

Second problem - DOMDocument refused to load Koreanian and Chineese files when using its standard encoding - so I converted the files into UTF-8. Please test if strings are properly displayed.

Normally all strings has its ID - and this ID is a number, but cannot put just numbers in XML as ID (not readable),
so its stringified form is used. For this all calls to GetResString(int) must be changed to GetResString(CString). I did it using search-and-replace with regular expression.
Later on found better idea and used macro, but only in WebServer.cpp - but this idea can be applyed for all calls.
There are two or three places where it doesn't work, so I had to modify the code - search for taab:locale in sources to find it.

Warning:
this mod contains also my other add-ins/patches, no reason to describe it here - not so important - does not harm anything, you have my word!!!

Purpose:
- to give startup code, which will clean current situation, where the string are resources and nobody likes it.


Please report:
any bugs, wrongly displayed text, etc.
ideas,
Also benutzt die Links im EDIT
http://www.emule-project.net/board/i...c0eafa1daa154e
gvstarfleet ist offline   Mit Zitat antworten
Alt 2. June 2003, 08:32   #2
Senior Member
 
Registriert seit: 07.01.2003
Beiträge: 477

ahja.. noch nen neuer Mod ?! Ist ja coool das die Programmierer trotz " Sommer-Wetter´s" so fleissig sind .... Hat denn schon Jemand damit Erfahrung ??

__________________
cu .. de DQA321 .. nur ICH halt
DQA321 ist offline   Mit Zitat antworten
Alt 8. June 2003, 23:39   #3
Advanced Member
 
Registriert seit: 27.12.2002
Beiträge: 169
Standard: eMule 0.28b-taabmod02 - [06.06.03] eMule 0.28b-taabmod02 - [06.06.03] Details

Also upgraden wäre für die angesagt, die diesen Mod nutzen !
Also nur die 02´er im EDIT verlinkten nutzen !

__________________
Gruß gvstarfleet
gvstarfleet ist offline   Mit Zitat antworten
Alt 11. June 2003, 09:48   #4
Junior Member
 
Registriert seit: 02.06.2003
Beiträge: 32
Standard: eMule 0.28b-taabmod02 - [06.06.03] Lösung: eMule 0.28b-taabmod02 - [06.06.03]

ich will den Mod auch ma testen, nur hab ich gerade keine zeit, wie läuft er denn so?
Shaolin® ist offline   Mit Zitat antworten
Antwort

Lesezeichen


Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen: eMule 0.28b-taabmod02 - [06.06.03]


  1. eMule 0.28b [Rectencle.8] CPU optimized
    eMule MODs - Allgemein - 1. September 2003 (10)
  2. eChanblard MOD eMule 0.28b - 1.95
    eMule MODs - Allgemein - 30. June 2003 (1)
  3. Emule 0.28b/0.29a [bloodymad 0.4]
    eMule MODs - Allgemein - 14. June 2003 (9)
  4. eMule 0.28b - Gameover, + [FEATURE] [12.05.03]
    eMule MODs - Allgemein - 13. June 2003 (2)
  5. eMule 0.28b LSD-8f (Build1) [03.06.03]
    eMule MODs - Allgemein - 6. June 2003 (3)
  6. eMule 0.28b LSD-8a und f PROBLEM!
    eMule MODs - Allgemein - 5. June 2003 (3)
  7. eMule 0.28b [MFCK] v1a [20.05.2003]
    eMule MODs - Allgemein - 5. June 2003 (6)
  8. eMule 0.28b [blackrat V0.1] [01.06.03]
    eMule MODs - Allgemein - 2. June 2003 (4)
  9. eMule v0.28b [12.05.03]
    eMule Allgemein - 29. May 2003 (24)
  10. eMule 0.28b [roman2k V0.32], Based on SF-VQB 0.32 [25-05-03]
    eMule MODs - Allgemein - 26. May 2003 (5)
  11. eMule 28b LSD-8e Final - Links down!!!
    Mülltonne - 18. May 2003 (1)
  12. emule v0.28b-LSD8e beta
    Mülltonne - 17. May 2003 (1)


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:29 Uhr.


Powered by vBulletin® Version 3.8.3 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
PAGERANK