Old 31st December 2003, 00:30   #1
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Translate FontName Plugin

I'm working on a translation of the FontName Plugin. This is a work in progress but if anyone could translate the strings into your language it would be greatly appreciated.

NOTE: This include file will not work with the current version of FontName plugin. It needs version 0.6 which will be released as soon as I can test the translation code fully and figgure out how to remove the dependancy to MSVCRT.DLL.

Vytautas
Attached Files
File Type: nsh fontname.nsh (2.1 KB, 769 views)

Last edited by Vytautas; 31st December 2003 at 01:16.
Vytautas is offline   Reply With Quote
Old 31st December 2003, 07:37   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
Don't forget to put an example "how to use" with the package, and to the .zip file be ready to extract in the NSIS dir. (as other plugins in the Archive should be)

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 31st December 2003, 09:04   #3
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Yes, when I have a fully operational version I will indeed do that, thanks. And a question is there a way to specify a default LandString, I thought that the language_id of 0 did that, but it appears to have a different function.

Vytautas
Vytautas is offline   Reply With Quote
Old 31st December 2003, 13:34   #4
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
!define FontName_LANG "1031" #German (by Jan T. Sott)

LangString FontName_FONTVERSION ${FontName_LANG} "Falsche Fontversion"
LangString FontName_MAPADDRESS ${FontName_LANG} "MappedFile Addressfehler: %u"
LangString FontName_MAPCREATE ${FontName_LANG} "MappedFile Fehler: %u"
LangString FontName_FILESIZE ${FontName_LANG} "Ungültige Dateigrösse: %u"
LangString FontName_FILEHANDLE ${FontName_LANG} "Ungültiges Dateihandle %u"
LangString FontName_VERSIONINFO ${FontName_LANG} "FontName %s Plugin für NSIS"

!undef FontName_LANG
Yathosho is offline   Reply With Quote
Old 1st January 2004, 03:09   #5
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Thank you killahbite for your translation.

Here is an updated file with the german translation and a modified language system due to problems with LangString.

Vytautas
Attached Files
File Type: nsh fontname.nsh (2.0 KB, 565 views)
Vytautas is offline   Reply With Quote
Old 2nd January 2004, 01:00   #6
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
What problems? (I'm not testing much because of a new home computer sharing with some people...)

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 2nd January 2004, 01:05   #7
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Not able to set a default language if a translation does not exist.

Vyutautas
Vytautas is offline   Reply With Quote
Old 2nd January 2004, 11:45   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Hebrew:
code:
Push "âøñú ëåôï ùâåéä"
Push "ùâéàú ëúåáú ÷åáõ îîåôä: %u"
Push "ùâéàú ÷åáõ îîåôä: %u"
Push "âåãì ÷åáõ ìà çå÷é: %u"
Push "éãéú ÷åáõ ìà çå÷éú %u"
Push "FontName %s plugin for NSIS"

Last string was not translated on purpose as it doesn't have any good translation in Hebrew.

BTW, you're jumping to Index instead of ${Index} in the macros.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 2nd January 2004, 12:17   #9
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
kichik thanks for the translation and spotting the Index mixup. Since I'm about to go on holidays for a couple of weeks, away from my PC , I'm attaching a test version of the plugin, see readme for instructions. Alas it still depends on MSVCRT.dll, I'm still working on that part.

BTW. kichik you mentioned that not all versions of windows contain MSVCRT, where do I find the info of which files are included in which version of windows?

Vytautas
Attached Files
File Type: zip fontname-0.6.zip (12.2 KB, 507 views)
Vytautas is offline   Reply With Quote
Old 2nd January 2004, 12:37   #10
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
The following page lists on which systems MSVCRT.dll is installed by default:

http://support.microsoft.com/default...NoWebContent=1

It seems MinGW supports using CRTDLL which is supposed to be on every operation system:

http://www.xraylith.wisc.edu/~khan/s...ingw32/INSTALL

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 4th January 2004, 08:11   #11
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
Brazilian Portuguese:

code:
StrCmp $LANGUAGE 1046 0 End-1046 ; Portuguese (Brazil) (by deguix)
Push "Versão de Fonte Errada"
Push "Erro de Endereço do ArquivoMapeado: %u"
Push "Erro do ArquivoMapeado: %u"
Push "Tamanho de arquivo inválido: %u"
Push "Manuseio de arquivo inválido %u"
Push "FontName %s plugin para NSIS"
goto ${Index}
End-1046:


My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 11th January 2004, 14:16   #12
asdfuae
Junior Member
 
Join Date: Oct 2002
Posts: 23
Arabic:
code:

StrCmp $LANGUAGE 1025 0 End-1025 ; Arabic (by asdfuae)
Push "إصدار الخط خاطئ"
Push "خطاء عنوان خريطةالملف: %u"
Push "خطاء خريطة الملف: %u"
Push "حجم الملف غيرصحيح: %u"
Push "معالج الملف غير صحيح %u"
Push "مقبس اسم الخط %s لنسيس"
goto ${Index}
End-1025:



the attachment is latest FontName.nsh with:
code:

;English (Default) - Vytautas Krivickas
;Lithuanian - Vytautas Krivickas
;German - Jan T. Sott
;Hebrew - kichik
;Portuguese (Brazil) - deguix
;Arabic - asdfuae

Attached Files
File Type: nsh fontname.nsh (3.1 KB, 522 views)
asdfuae is offline   Reply With Quote
Old 13th January 2004, 15:28   #13
kiiali
Member
 
kiiali's Avatar
 
Join Date: Oct 2002
Location: Taoyuan, Taiwan (formally called Rebulic of China :-)
Posts: 73
Send a message via ICQ to kiiali
updated with

Chinese (Traditional)
Chinese (Simplified)

now the credit here:

;Translated To - Translated By
;----------------------------------------------------------
;English (Default) - Vytautas Krivickas
;Lithuanian - Vytautas Krivickas
;German - Jan T. Sott
;Hebrew - kichik
;Portuguese (Brazil) - deguix
;Arabic - asdfuae
;Chinese (Traditional) - Kii Ali <kiiali@cpatch.org>
;Chinese (Simplified) - Kii Ali <kiiali@cpatch.org>
Attached Files
File Type: nsh fontname.nsh (3.8 KB, 589 views)
kiiali is offline   Reply With Quote
Old 23rd January 2004, 12:04   #14
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
I finally gave up on trying to get rig of MSVCRT dependancy from Dev-CPP compiler and switched to DigitalMars and within 30 minutes I had the plugin finished. So thank you for everyone who has translated the plugin and I'm attaching the FontName Plugin zip file.

You can also download the automated setup file from here.

Vytautas
Attached Files
File Type: zip fontname-0.6.zip (19.3 KB, 558 views)
Vytautas is offline   Reply With Quote
Old 24th January 2004, 05:20   #15
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Updated to a, hopefully, more efficient code. No more StrCpy functions inside the dll, replaced with memcpy. A problem when you develop the same plugin from two locations and the code is not always up to date.

Vytautas
Attached Files
File Type: zip fontname-0.6.zip (19.3 KB, 465 views)
Vytautas is offline   Reply With Quote
Old 29th January 2004, 10:43   #16
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Oops, forgot to include the source code in the zip file.

The dll compiled by DigitalMars C++ compiler with the followinf command line: "dmc -WD fontname.c -w kernel32.lib"

Vytautas

PS. My NSIS Archive page for this plugin contains a link to an executable installer for this plugin which automatically install all appropriate files in the right locations.
Attached Files
File Type: zip fontname-0.6.zip (22.9 KB, 578 views)
Vytautas is offline   Reply With Quote
Old 10th February 2004, 12:19   #17
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Another slight update, for links see the archive page, this time the main change was a significant reduction in the file size of the plugin.

I achieved this by changing the compiler to lcc-win32. The only source code modifications were there to allow lcc to compile without errors and warnings.

A problem I have found quite often when changing compilers, they never compile the same source in the same way.

Vytautas
Vytautas is offline   Reply With Quote
Old 17th February 2004, 16:27   #18
evilO
Senior Member
 
Join Date: Jan 2004
Location: Strasbourg, Europe
Posts: 117
Added the french translation

evilO/Olive


PS:
Quote:
So thank you for everyone who has translated the plugin
Err, maybe you don't need it anymore..
Attached Files
File Type: nsh fontname.nsh (4.1 KB, 520 views)
evilO is offline   Reply With Quote
Old 19th February 2004, 02:20   #19
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Thanks evilO, updated the FontName distribution on my home page. NSIS Archive download page will be updated once kichik returns.

Vytautas
Vytautas is offline   Reply With Quote
Old 8th March 2004, 09:57   #20
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Added Spanish Translation as PMed to me by Cecilio.

The credits for the translations now are:
PHP Code:
Translated To         Translated By
----------------------------------------------------------
English (Default)     - Vytautas Krivickas
Lithuanian            
Vytautas Krivickas
German                
Jan TSott
Hebrew                
kichik
Portuguese 
(Brazil)   - deguix
Arabic                
asdfuae
Chinese 
(Traditional) - Kii Ali <kiiali@cpatch.org>
Chinese (Simplified)  - Kii Ali <kiiali@cpatch.org>
French                evilO/Olive
Spanish 
(Traditional) - Cecilio 
Vytautas
Vytautas is offline   Reply With Quote
Old 8th March 2004, 21:58   #21
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,354
Send a message via ICQ to deguix
Ehhh... just fix the accents from Portuguese (Brazil) language; see my old first post, that one is the correct.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 9th March 2004, 11:48   #22
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Sorry about that, not sure when/how that got corrupted. This header file has gone through several editors here so one of the probably did the damage.

All fixed up now, I hope

Vytautas
Vytautas is offline   Reply With Quote
Old 28th April 2005, 16:26   #23
hooklee
Junior Member
 
Join Date: Apr 2005
Location: China
Posts: 30
http://vytautas.mine.nu/nsis.php is not available. Could you please check it? Thanks.
hooklee is offline   Reply With Quote
Old 19th May 2005, 09:29   #24
wingman2083
Junior Member
 
Join Date: Jan 2003
Location: Veles, Macedonia
Posts: 13
Macedonian translation

I add macedonian translation too.
Attached Files
File Type: nsh fontname.nsh (4.5 KB, 645 views)
wingman2083 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion > NSIS Translations

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump