Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fdff5230
Commit
fdff5230
authored
Mar 27, 2002
by
Sylvain Petreolle
Committed by
Alexandre Julliard
Mar 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted to use of NLS.
parent
89118568
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
338 additions
and
519 deletions
+338
-519
ChangeLog
programs/clock/ChangeLog
+4
-0
Da.rc
programs/clock/Da.rc
+26
-35
De.rc
programs/clock/De.rc
+26
-34
En.rc
programs/clock/En.rc
+26
-33
Es.rc
programs/clock/Es.rc
+26
-32
Fi.rc
programs/clock/Fi.rc
+26
-32
Fr.rc
programs/clock/Fr.rc
+27
-33
Pt.rc
programs/clock/Pt.rc
+27
-32
Sk.rc
programs/clock/Sk.rc
+27
-33
Sw.rc
programs/clock/Sw.rc
+26
-34
TODO
programs/clock/TODO
+1
-2
Wa.rc
programs/clock/Wa.rc
+26
-32
clock.rc
programs/clock/clock.rc
+0
-95
clock_res.h
programs/clock/clock_res.h
+21
-0
language.c
programs/clock/language.c
+16
-67
language.h
programs/clock/language.h
+1
-2
main.c
programs/clock/main.c
+29
-13
main.h
programs/clock/main.h
+2
-0
rsrc.rc
programs/clock/rsrc.rc
+1
-10
No files found.
programs/clock/ChangeLog
View file @
fdff5230
Tue Mar 26 19:15:00 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* [*.rc] [clock_res.h] [main.?] [language.?]
Rewrite for NLS use.
Tue Oct 12 20:31:00 1999 Gustavo Junior Alves <alves@correionet.com.br>
* [Pt.rc] [Makefile.in]
Added Portuguese language support.
...
...
programs/clock/Da.rc
View file @
fdff5230
...
...
@@ -2,6 +2,7 @@
* Clock (Danish resources)
*
* Copyright 1998 Henrik Olsen <henrik@iaeste.dk>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,38 +19,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Da
#define LANGUAGE_NUMBER 6
/* System Menu */
#define MENU_ON_TOP "&Altid verst"
/* Window Menu */
#define MENU_PROPERTIES "&Instillinger"
#define MENU_ANALOG "&Analog"
#define MENU_DIGITAL "&Digital"
#define MENU_FONT "&Skrifttype..."
#define MENU_WITHOUT_TITLE "Skjul Titel&linje"
#define MENU_SECONDS "Se&kunder"
#define MENU_DATE "Da&to"
#define MENU_LANGUAGE "S&prog"
#define LANGUAGE_MENU_ITEM "&Dansk"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Licens"
#define MENU_INFO_NO_WARRANTY "&NO WARRANTY"
#define MENU_INFO_ABOUT_WINE "&Om Ur..."
/* Window Caption */
#define STRING_CLOCK "Ur"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_DANISH, SUBLANG_NEUTRAL
{
POPUP "&Instillinger" {
MENUITEM "&Analog", 0x100
MENUITEM "&Digital", 0x101
MENUITEM SEPARATOR
MENUITEM "&Skrifttype...", 0x103
MENUITEM SEPARATOR
MENUITEM "Skjul Titel&linje", 0x105
MENUITEM SEPARATOR
MENUITEM "Se&kunder", 0x107
MENUITEM "Da&to", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&Licens", 0x109
MENUITEM "&NO WARRANTY", 0x10A
MENUITEM "&Om Ur...", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_DANISH, SUBLANG_NEUTRAL
{
CLOCK, "Ur"
MENU_ON_TOP, "&Altid verst"
}
programs/clock/De.rc
View file @
fdff5230
...
...
@@ -2,6 +2,7 @@
* Clock (German resources)
*
* Copyright 1997 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,37 +19,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID De
#define LANGUAGE_NUMBER 2
/* System Menu */
#define MENU_ON_TOP "&Immer im Vordergrund"
/* Window Menu */
#define MENU_PROPERTIES "&Einstellungen"
#define MENU_ANALOG "Ana&log"
#define MENU_DIGITAL "Digi&tal"
#define MENU_FONT "Schrift&art..."
#define MENU_WITHOUT_TITLE "&Ohne Titelleiste"
#define MENU_SECONDS "&Sekunden"
#define MENU_DATE "&Datum"
#define MENU_LANGUAGE "&Sprache"
#define LANGUAGE_MENU_ITEM "&Deutsch"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Lizenz"
#define MENU_INFO_NO_WARRANTY "&KEINE GARANTIE"
#define MENU_INFO_ABOUT_WINE "&ber Uhr..."
/* Window Caption */
#define STRING_CLOCK "Uhr"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
{
POPUP "&Einstellungen" {
MENUITEM "Ana&log", 0x100
MENUITEM "Digi&tal", 0x101
MENUITEM SEPARATOR
MENUITEM "Schrift&art...", 0x103
MENUITEM SEPARATOR
MENUITEM "&Ohne Titelleiste", 0x105
MENUITEM SEPARATOR
MENUITEM "&Sekunden", 0x107
MENUITEM "&Datum", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&Lizenz", 0x109
MENUITEM "&KEINE GARANTIE", 0x10A
MENUITEM "&ber Uhr", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
{
CLOCK, "Uhr"
MENU_ON_TOP, "&Immer im Vordergrund"
}
programs/clock/En.rc
View file @
fdff5230
...
...
@@ -2,7 +2,7 @@
* Clock (English resources)
*
* Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
*
FIXME: Weak translation !
*
Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -19,35 +19,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID En
#define LANGUAGE_NUMBER 0
/* System Menu */
#define MENU_ON_TOP "&Always on Top"
/* Window Menu */
#define MENU_PROPERTIES "&Properties"
#define MENU_ANALOG "Ana&log"
#define MENU_DIGITAL "Digi&tal"
#define MENU_FONT "&Font..."
#define MENU_WITHOUT_TITLE "&Without Titlebar"
#define MENU_SECONDS "&Seconds"
#define MENU_DATE "&Date"
#define MENU_LANGUAGE "&Language"
#define LANGUAGE_MENU_ITEM "&English"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&License"
#define MENU_INFO_NO_WARRANTY "&NO WARRANTY"
#define MENU_INFO_ABOUT_WINE "&About Clock..."
/* Window Caption */
#define STRING_CLOCK "Clock"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
{
POPUP "&Properties" {
MENUITEM "Ana&log", 0x100
MENUITEM "Digi&tal", 0x101
MENUITEM SEPARATOR
MENUITEM "&Font...", 0x103
MENUITEM SEPARATOR
MENUITEM "&Without Titlebar", 0x105
MENUITEM SEPARATOR
MENUITEM "&Seconds", 0x107
MENUITEM "&Date", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&License", 0x109
MENUITEM "&NO WARRANTY", 0x10A
MENUITEM "&About Clock... ", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
{
CLOCK, "Clock"
MENU_ON_TOP, "&Always on Top"
}
programs/clock/Es.rc
View file @
fdff5230
...
...
@@ -3,6 +3,7 @@
*
* Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
* Spanish translation by Pablo Saratxaga <srtxg@chanae.alphanet.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -19,35 +20,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Es
#define LANGUAGE_NUMBER d
/* System Menu */
#define MENU_ON_TOP "Siempre &visible"
/* Window Menu */
#define MENU_PROPERTIES "&Propepiedades"
#define MENU_ANALOG "Ana&lgico"
#define MENU_DIGITAL "Digi&tal"
#define MENU_FONT "&Fuente..."
#define MENU_WITHOUT_TITLE "Sin barra de &ttulo"
#define MENU_SECONDS "&Segundos"
#define MENU_DATE "Fe&cha"
#define MENU_LANGUAGE "&Idioma"
#define LANGUAGE_MENU_ITEM "Castellano"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Licencia"
#define MENU_INFO_NO_WARRANTY "SIN &GARANTA"
#define MENU_INFO_ABOUT_WINE "&Acerca del Reloj..."
/* Window Caption */
#define STRING_CLOCK "Reloj"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
{
POPUP "&Propepiedades" {
MENUITEM "Ana&lgico", 0x100
MENUITEM "Digi&tal", 0x101
MENUITEM SEPARATOR
MENUITEM "&Fuente...", 0x103
MENUITEM SEPARATOR
MENUITEM "Sin barra de &ttulo", 0x105
MENUITEM SEPARATOR
MENUITEM "&Segundos", 0x107
MENUITEM "Fe&cha", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&Licencia", 0x109
MENUITEM "&SIN &GARANTA", 0x10A
MENUITEM "&Acerca del Reloj...", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
{
CLOCK, "Reloj"
MENU_ON_TOP, "Siempre &visible"
}
programs/clock/Fi.rc
View file @
fdff5230
...
...
@@ -2,6 +2,7 @@
* Clock (Finnish resources)
*
* Copyright 1999 Jukka Iivonen
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,35 +19,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Fi
#define LANGUAGE_NUMBER b
/* System Menu */
#define MENU_ON_TOP "&Aina pllimmisen"
/* Window Menu */
#define MENU_PROPERTIES "&Ominaisuudet"
#define MENU_ANALOG "&Analoginen"
#define MENU_DIGITAL "Di&gitaalinen"
#define MENU_FONT "&Fontti..."
#define MENU_WITHOUT_TITLE "&Ilman otsikkopalkkia"
#define MENU_SECONDS "&Sekunnit"
#define MENU_DATE "&Pivmr"
#define MENU_LANGUAGE "&Kieli"
#define LANGUAGE_MENU_ITEM "&Finnish"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Lisenssi"
#define MENU_INFO_NO_WARRANTY "&EI TAKUUTA"
#define MENU_INFO_ABOUT_WINE "&Kellosta..."
/* Window Caption */
#define STRING_CLOCK "Kello"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_FINNISH, SUBLANG_NEUTRAL
{
POPUP "&Ominaisuudet" {
MENUITEM "&Analoginen", 0x100
MENUITEM "Di&gitaalinen", 0x101
MENUITEM SEPARATOR
MENUITEM "&Fontti...", 0x103
MENUITEM SEPARATOR
MENUITEM "&Ilman otsikkopalkkia", 0x105
MENUITEM SEPARATOR
MENUITEM "&Sekunnit", 0x107
MENUITEM "&Pivmr", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&Lisenssi", 0x109
MENUITEM "&EI TAKUUTA", 0x10A
MENUITEM "&Kellosta...", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_FINNISH, SUBLANG_NEUTRAL
{
CLOCK, "Kello"
MENU_ON_TOP, "&Aina pllimmisen"
}
programs/clock/Fr.rc
View file @
fdff5230
/*
* Clock (French resources)
*
Clock (French resources)
*
* Copyright 1998 Robert Pouliot <krynos@clic.net>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,35 +19,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Fr
#define LANGUAGE_NUMBER 4
/* System Menu */
#define MENU_ON_TOP "&Toujours visible"
/* Window Menu */
#define MENU_PROPERTIES "&Proprits"
#define MENU_ANALOG "Ana&logue"
#define MENU_DIGITAL "Digi&tale"
#define MENU_FONT "&Fonte..."
#define MENU_WITHOUT_TITLE "&Sans barre titre"
#define MENU_SECONDS "&Secondes"
#define MENU_DATE "&Date"
#define MENU_LANGUAGE "&Langue"
#define LANGUAGE_MENU_ITEM "&Franais"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Licence"
#define MENU_INFO_NO_WARRANTY "&NO WARRANTY"
#define MENU_INFO_ABOUT_WINE "&A propos de l'horloge..."
/* Window Caption */
#define STRING_CLOCK "Horloge"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
{
POPUP "&Proprits" {
MENUITEM "Ana&logue", 0x100
MENUITEM "Digi&tale", 0x101
MENUITEM SEPARATOR
MENUITEM "&Fonte...", 0x103
MENUITEM SEPARATOR
MENUITEM "&Sans barre de titre", 0x105
MENUITEM SEPARATOR
MENUITEM "&Secondes", 0x107
MENUITEM "&Date", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&Licence", 0x109
MENUITEM "&AUCUNE GARANTIE", 0x10A
MENUITEM "&A propos de Horloge", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
{
CLOCK, "Horloge"
MENU_ON_TOP, "&Toujours visible"
}
programs/clock/Pt.rc
View file @
fdff5230
/*
* Clock (
English
resources)
* Clock (
Portuguese
resources)
*
* Copyright 1999 Gustavo Junior Alves <alves@correionet.com.br>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* FIXME: Weak translation !
*
* This library is free software; you can redistribute it and/or
...
...
@@ -19,34 +20,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Pt
#define LANGUAGE_NUMBER 16
#define LANGUAGE_MENU_ITEM "&Portugus"
/* System Menu */
#define MENU_ON_TOP "&Sempre visvel"
/* Window Menu */
#define MENU_PROPERTIES "&Propriedades"
#define MENU_ANALOG "&Analgico"
#define MENU_DIGITAL "&Digital"
#define MENU_FONT "&Fonte..."
#define MENU_WITHOUT_TITLE "&Sem barra de ttulo"
#define MENU_SECONDS "&Segundos"
#define MENU_DATE "&Data"
#define MENU_LANGUAGE "&Linguagem"
#define MENU_INFO "Inf&ormaes..."
#define MENU_INFO_LICENSE "&Licena"
#define MENU_INFO_NO_WARRANTY "&SEM GARANTIA"
#define MENU_INFO_ABOUT_WINE "&Sobre Clock..."
/* Window Caption */
#define STRING_CLOCK "Clock"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
{
POPUP "&Propriedades" {
MENUITEM "&Analgico", 0x100
MENUITEM "Digi&tal", 0x101
MENUITEM SEPARATOR
MENUITEM "&Fonte...", 0x103
MENUITEM SEPARATOR
MENUITEM "&Sem barra de ttulo", 0x105
MENUITEM SEPARATOR
MENUITEM "&Segundos", 0x107
MENUITEM "&Data", 0x108
}
POPUP "Inf&ormaes..." {
MENUITEM "&Licena", 0x109
MENUITEM "&SEM GARANTIA", 0x10A
MENUITEM "&Sobre Clock...", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
{
CLOCK, "Clock"
MENU_ON_TOP, "&Sempre visvel"
}
programs/clock/Sk.rc
View file @
fdff5230
/*
* Clock (
English
resources)
* Clock (
Slovak
resources)
*
* Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* FIXME: Weak translation !
*
* This library is free software; you can redistribute it and/or
...
...
@@ -19,35 +20,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Sk
#define LANGUAGE_NUMBER 10
/* System Menu */
#define MENU_ON_TOP "&Vdy na vrchu"
/* Window Menu */
#define MENU_PROPERTIES "&Vlastnosti"
#define MENU_ANALOG "Ana&lgov"
#define MENU_DIGITAL "Digi&tlne"
#define MENU_FONT "&Font..."
#define MENU_WITHOUT_TITLE "&Bez titulkovho pruhu"
#define MENU_SECONDS "&Sekundy"
#define MENU_DATE "&Dtum"
#define MENU_LANGUAGE "&Jazyk"
#define LANGUAGE_MENU_ITEM "&Slovensky"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Licencia"
#define MENU_INFO_NO_WARRANTY "&BEZ ZRUKY"
#define MENU_INFO_ABOUT_WINE "&O hodinch..."
/* Window Caption */
#define STRING_CLOCK "Hodiny"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_SLOVAK, SUBLANG_NEUTRAL
{
POPUP "&Vlastnosti" {
MENUITEM "Ana&lgov", 0x100
MENUITEM "Digi&tlne", 0x101
MENUITEM SEPARATOR
MENUITEM "&Font...", 0x103
MENUITEM SEPARATOR
MENUITEM "&Bez titulkovho pruhu", 0x105
MENUITEM SEPARATOR
MENUITEM "&Sekundy", 0x107
MENUITEM "&Dtum", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&Licencia", 0x109
MENUITEM "&BEZ ZRUKY", 0x10A
MENUITEM "&O hodinch...", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_SLOVAK, SUBLANG_NEUTRAL
{
CLOCK, "Hodiny"
MENU_ON_TOP, "&Vdy na vrchu"
}
programs/clock/Sw.rc
View file @
fdff5230
...
...
@@ -3,6 +3,7 @@
*
* Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
* Translated into Swedish by Karl Backstrm <karl_b@geocities.com>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -19,37 +20,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Sw
#define LANGUAGE_NUMBER 1d
/* System Menu */
#define MENU_ON_TOP "&Alltid verst"
/* Window Menu */
#define MENU_PROPERTIES "&Egenskaper"
#define MENU_ANALOG "Ana&log"
#define MENU_DIGITAL "Digi&tal"
#define MENU_FONT "&Font..."
#define MENU_WITHOUT_TITLE "&Utan Titlebar"
#define MENU_SECONDS "&Sekunder"
#define MENU_DATE "&Datum"
#define MENU_LANGUAGE "&Sprk"
#define LANGUAGE_MENU_ITEM "&Svenska"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Licens"
#define MENU_INFO_NO_WARRANTY "&INGEN GARANTI"
#define MENU_INFO_ABOUT_WINE "&Om Klockan..."
/* Window Caption */
#define STRING_CLOCK "Klockan"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
{
POPUP "&Egenskaper" {
MENUITEM "Ana&log", 0x100
MENUITEM "Digi&tal", 0x101
MENUITEM SEPARATOR
MENUITEM "&Font...", 0x103
MENUITEM SEPARATOR
MENUITEM "&Utan Titlebar", 0x105
MENUITEM SEPARATOR
MENUITEM "&Sekunder", 0x107
MENUITEM "&Datum", 0x108
}
POPUP "Inf&o..." {
MENUITEM "&Licens", 0x109
MENUITEM "&INGEN GARANTI", 0x10A
MENUITEM "&Om Klockan...", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
{
CLOCK, "Klockan"
MENU_ON_TOP, "&Alltid verst"
}
programs/clock/TODO
View file @
fdff5230
...
...
@@ -11,8 +11,7 @@ Some ideas for improvements:
- Implement Timer Mechanism instead Polling.
Clock does not run if menu is being selected (?).
- Fix English translation by comparing strings from an original English
Windows Clock application (I only have a German version).
- Complete translation for the following languages : Pt,Sk
- Add new .rc resources for all languages you know. That's in fact very easy.
Just clone the file En.rc, change the strings and submit it. You can find
...
...
programs/clock/Wa.rc
View file @
fdff5230
...
...
@@ -2,6 +2,7 @@
* Clock (Walloon resources)
*
* Copyright 1999 Pablo Saratxaga
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -22,35 +23,28 @@
*
*/
#define LANGUAGE_ID Wa
#define LANGUAGE_NUMBER 90
/* System Menu */
#define MENU_ON_TOP "Todi &Visibe"
/* Window Menu */
#define MENU_PROPERTIES "&Propiets"
#define MENU_ANALOG "&Analodjike"
#define MENU_DIGITAL "&Limerike"
#define MENU_FONT "&Fonte..."
#define MENU_WITHOUT_TITLE "Sin br di &Tite"
#define MENU_SECONDS "&Segondes"
#define MENU_DATE "&Date"
#define MENU_LANGUAGE "&Lingaedje"
#define LANGUAGE_MENU_ITEM "&Walon"
#define MENU_INFO "&Informcion..."
#define MENU_INFO_LICENSE "&Licinse"
#define MENU_INFO_NO_WARRANTY "&NOLE WARANTEYE"
#define MENU_INFO_ABOUT_WINE " &dfait di l' rlodje..."
/* Window Caption */
#define STRING_CLOCK "rlodje"
#include "clock.rc"
MAIN_MENU MENU LANGUAGE LANG_WALON, SUBLANG_NEUTRAL
{
POPUP "&Propiets" {
MENUITEM "&Analodjike", 0x100
MENUITEM "&Limerike", 0x101
MENUITEM SEPARATOR
MENUITEM "&Fonte...", 0x103
MENUITEM SEPARATOR
MENUITEM "Sin br di &Tite", 0x105
MENUITEM SEPARATOR
MENUITEM "&Segondes", 0x107
MENUITEM "&Date", 0x108
}
POPUP "&Informcion..." {
MENUITEM "&Licinse", 0x109
MENUITEM "&NOLE WARANTEYE", 0x10A
MENUITEM " &dfait di l' rlodje...", 0x10B
}
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_WALON, SUBLANG_NEUTRAL
{
CLOCK, "rlodje"
MENU_ON_TOP, "Todi &Visibe"
}
programs/clock/clock.rc
deleted
100644 → 0
View file @
89118568
/*
* Clock (clock.rc)
*
* Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* Main Menu */
CONCAT(MENU_, LANGUAGE_ID) MENU
{
POPUP MENU_PROPERTIES {
MENUITEM MENU_ANALOG, CL_ANALOG
MENUITEM MENU_DIGITAL, CL_DIGITAL
MENUITEM SEPARATOR
MENUITEM MENU_FONT, CL_FONT
MENUITEM SEPARATOR
MENUITEM MENU_WITHOUT_TITLE, CL_WITHOUT_TITLE
MENUITEM SEPARATOR
MENUITEM MENU_SECONDS, CL_SECONDS
MENUITEM MENU_DATE, CL_DATE
}
POPUP MENU_LANGUAGE {
/* Dummy item, will be removed */
MENUITEM SEPARATOR
}
POPUP MENU_INFO {
MENUITEM MENU_INFO_LICENSE, CL_INFO_LICENSE
MENUITEM MENU_INFO_NO_WARRANTY, CL_INFO_NO_WARRANTY
MENUITEM MENU_INFO_ABOUT_WINE, CL_INFO_ABOUT_WINE
}
}
/* Strings */
#define STRING_LANGUAGE_ID STRINGIFY(LANGUAGE_ID)
#define STRING_LANGUAGE_MENU_ITEM LANGUAGE_MENU_ITEM
#define STRING_MENU_ON_TOP MENU_ON_TOP
STRINGTABLE
{
ADDSTRING(LANGUAGE_ID)
ADDSTRING(LANGUAGE_MENU_ITEM)
ADDSTRING(CLOCK)
ADDSTRING(MENU_ON_TOP)
}
/* Undefine all language-specific strings */
#undef LANGUAGE_ID
#undef LANGUAGE_NUMBER
#undef MENU_ON_TOP
#undef MENU_PROPERTIES
#undef MENU_ANALOG
#undef MENU_DIGITAL
#undef MENU_FONT
#undef MENU_WITHOUT_TITLE
#undef MENU_SECONDS
#undef MENU_DATE
#undef MENU_LANGUAGE
#undef LANGUAGE_MENU_ITEM
#undef MENU_INFO
#undef MENU_INFO_LICENSE
#undef MENU_INFO_NO_WARRANTY
#undef MENU_INFO_ABOUT_WINE
#undef STRING_LANGUAGE_ID
#undef STRING_LANGUAGE_MENU_ITEM
#undef STRING_MENU_ON_TOP
#undef STRING_CLOCK
programs/clock/clock_res.h
0 → 100644
View file @
fdff5230
/*
* Copyright 2002 Sylvain Petreolle
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define CLOCK 0x10C
#define MENU_ON_TOP 0x10D
#define MAIN_MENU 0x10E
programs/clock/language.c
View file @
fdff5230
...
...
@@ -33,11 +33,11 @@ VOID LANGUAGE_UpdateMenuCheckmarks(VOID) {
/* analog clock */
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
CL_ANALOG
,
\
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
0x100
,
\
MF_BYCOMMAND
|
MF_CHECKED
);
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
CL_DIGITAL
,
\
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
0x101
,
\
MF_BYCOMMAND
|
MF_UNCHECKED
);
EnableMenuItem
(
Globals
.
hPropertiesMenu
,
CL_FONT
,
\
EnableMenuItem
(
Globals
.
hPropertiesMenu
,
0x103
,
\
MF_BYCOMMAND
|
MF_GRAYED
);
}
else
...
...
@@ -45,22 +45,22 @@ VOID LANGUAGE_UpdateMenuCheckmarks(VOID) {
/* digital clock */
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
CL_ANALOG
,
\
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
0x100
,
\
MF_BYCOMMAND
|
MF_UNCHECKED
);
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
CL_DIGITAL
,
\
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
0x101
,
\
MF_BYCOMMAND
|
MF_CHECKED
);
EnableMenuItem
(
Globals
.
hPropertiesMenu
,
CL_FONT
,
\
EnableMenuItem
(
Globals
.
hPropertiesMenu
,
0x103
,
\
MF_BYCOMMAND
);
}
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
CL_WITHOUT_TITLE
,
MF_BYCOMMAND
|
\
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
0x105
,
MF_BYCOMMAND
|
\
(
Globals
.
bWithoutTitle
?
MF_CHECKED
:
MF_UNCHECKED
));
CheckMenuItem
(
Globals
.
hSystemMenu
,
CL_ON_TOP
,
MF_BYCOMMAND
|
\
CheckMenuItem
(
Globals
.
hSystemMenu
,
0x10D
,
MF_BYCOMMAND
|
\
(
Globals
.
bAlwaysOnTop
?
MF_CHECKED
:
MF_UNCHECKED
));
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
CL_SECONDS
,
MF_BYCOMMAND
|
\
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
0x107
,
MF_BYCOMMAND
|
\
(
Globals
.
bSeconds
?
MF_CHECKED
:
MF_UNCHECKED
));
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
CL_DATE
,
MF_BYCOMMAND
|
\
CheckMenuItem
(
Globals
.
hPropertiesMenu
,
0x108
,
MF_BYCOMMAND
|
\
(
Globals
.
bDate
?
MF_CHECKED
:
MF_UNCHECKED
));
}
...
...
@@ -79,7 +79,7 @@ VOID LANGUAGE_UpdateWindowCaption(VOID) {
MAX_STRING_LEN
);
/* Set frame caption */
LoadString
(
Globals
.
hInstance
,
IDS_CLOCK
,
szCaption
,
sizeof
(
szCaption
));
LoadString
(
Globals
.
hInstance
,
0x10C
,
szCaption
,
sizeof
(
szCaption
));
if
(
Globals
.
bDate
)
{
lstrcat
(
szCaption
,
" - "
);
lstrcat
(
szCaption
,
szDate
);
...
...
@@ -88,72 +88,19 @@ VOID LANGUAGE_UpdateWindowCaption(VOID) {
}
static
BOOL
LANGUAGE_LoadStringOther
(
UINT
num
,
UINT
ids
,
LPSTR
str
,
UINT
len
)
{
ids
-=
Globals
.
wStringTableOffset
;
ids
+=
num
*
0x100
;
return
(
LoadString
(
Globals
.
hInstance
,
ids
,
str
,
len
));
};
VOID
LANGUAGE_SelectByName
(
LPCSTR
lang
)
VOID
LANGUAGE_LoadMenus
(
VOID
)
{
INT
i
;
CHAR
szNewLang
[
3
];
for
(
i
=
0
;
i
<=
MAX_LANGUAGE_NUMBER
;
i
++
)
if
(
LANGUAGE_LoadStringOther
(
i
,
IDS_LANGUAGE_ID
,
szNewLang
,
sizeof
(
szNewLang
))
&&
!
lstrcmp
(
lang
,
szNewLang
))
{
LANGUAGE_SelectByNumber
(
i
);
return
;
}
/* Fallback */
for
(
i
=
0
;
i
<=
MAX_LANGUAGE_NUMBER
;
i
++
)
if
(
LANGUAGE_LoadStringOther
(
i
,
IDS_LANGUAGE_ID
,
szNewLang
,
sizeof
(
szNewLang
)))
{
LANGUAGE_SelectByNumber
(
i
);
return
;
}
MessageBox
(
Globals
.
hMainWnd
,
"No language found"
,
"FATAL ERROR"
,
MB_OK
);
PostQuitMessage
(
1
);
}
VOID
LANGUAGE_SelectByNumber
(
UINT
num
)
{
INT
i
;
CHAR
szLanguage
[
3
];
CHAR
szItem
[
MAX_STRING_LEN
];
HMENU
hMainMenu
;
/* Select string table */
Globals
.
wStringTableOffset
=
num
*
0x100
;
/* Get Language id */
LoadString
(
Globals
.
hInstance
,
IDS_LANGUAGE_ID
,
szLanguage
,
sizeof
(
szLanguage
));
/* Change Resource names */
lstrcpyn
(
STRING_MENU_Xx
+
sizeof
(
STRING_MENU_Xx
)
-
3
,
szLanguage
,
3
);
/* Create menu */
hMainMenu
=
LoadMenu
(
Globals
.
hInstance
,
STRING_MENU_Xx
);
hMainMenu
=
LoadMenu
(
Globals
.
hInstance
,
MAIN_MENU
);
Globals
.
hPropertiesMenu
=
GetSubMenu
(
hMainMenu
,
0
);
Globals
.
hLanguageMenu
=
GetSubMenu
(
hMainMenu
,
1
);
Globals
.
hInfoMenu
=
GetSubMenu
(
hMainMenu
,
2
);
/* Remove dummy item */
RemoveMenu
(
Globals
.
hLanguageMenu
,
0
,
MF_BYPOSITION
);
/* Add language items */
for
(
i
=
0
;
i
<=
MAX_LANGUAGE_NUMBER
;
i
++
)
if
(
LANGUAGE_LoadStringOther
(
i
,
IDS_LANGUAGE_MENU_ITEM
,
szItem
,
sizeof
(
szItem
)))
AppendMenu
(
Globals
.
hLanguageMenu
,
MF_STRING
|
MF_BYCOMMAND
,
CL_FIRST_LANGUAGE
+
i
,
szItem
);
EnableMenuItem
(
Globals
.
hLanguageMenu
,
CL_FIRST_LANGUAGE
+
num
,
MF_BYCOMMAND
|
MF_CHECKED
);
SetMenu
(
Globals
.
hMainWnd
,
hMainMenu
);
/* Destroy old menu */
...
...
@@ -169,16 +116,18 @@ VOID LANGUAGE_SelectByNumber(UINT num)
/* FIXME: Append a SEPARATOR to Globals.hSystemMenu here */
LoadString
(
Globals
.
hInstance
,
IDS_MENU_ON_TOP
,
szItem
,
sizeof
(
szItem
));
LoadString
(
Globals
.
hInstance
,
0x10D
,
szItem
,
sizeof
(
szItem
));
AppendMenu
(
Globals
.
hSystemMenu
,
MF_STRING
|
MF_BYCOMMAND
,
1000
,
szItem
);
}
/*
VOID LANGUAGE_DefaultHandle(WPARAM wParam)
{
if ((wParam >=CL_FIRST_LANGUAGE) && (wParam<=CL_LAST_LANGUAGE))
LANGUAGE_SelectByNumber(wParam - CL_FIRST_LANGUAGE);
else printf("Unimplemented menu command %i\n", wParam);
}
*/
/* Local Variables: */
/* c-file-style: "GNU" */
...
...
programs/clock/language.h
View file @
fdff5230
...
...
@@ -21,8 +21,7 @@
VOID
LANGUAGE_UpdateWindowCaption
(
VOID
);
VOID
LANGUAGE_UpdateMenuCheckmarks
(
VOID
);
VOID
LANGUAGE_SelectByNumber
(
UINT
num
);
VOID
LANGUAGE_SelectByName
(
LPCSTR
lang
);
VOID
LANGUAGE_LoadMenus
(
VOID
);
VOID
LANGUAGE_DefaultHandle
(
WPARAM
wParam
);
/* Local Variables: */
...
...
programs/clock/main.c
View file @
fdff5230
...
...
@@ -43,61 +43,77 @@ CLOCK_GLOBALS Globals;
int
CLOCK_MenuCommand
(
WPARAM
wParam
)
{
CHAR
szApp
[
MAX_STRING_LEN
];
CHAR
szAppRelease
[
MAX_STRING_LEN
];
switch
(
wParam
)
{
case
CL_ANALOG
:
{
/* switch to analog */
case
0x100
:
{
Globals
.
bAnalog
=
TRUE
;
LANGUAGE_UpdateMenuCheckmarks
();
SendMessage
(
Globals
.
hMainWnd
,
WM_PAINT
,
0
,
0
);
break
;
}
case
CL_DIGITAL
:
{
/* switch to digital */
case
0x101
:
{
Globals
.
bAnalog
=
FALSE
;
LANGUAGE_UpdateMenuCheckmarks
();
SendMessage
(
Globals
.
hMainWnd
,
WM_PAINT
,
0
,
0
);
break
;
}
case
CL_FONT
:
{
/* change font */
case
0x103
:
{
MAIN_FileChooseFont
();
break
;
}
case
CL_WITHOUT_TITLE
:
{
/* hide title bar */
case
0x105
:
{
Globals
.
bWithoutTitle
=
!
Globals
.
bWithoutTitle
;
LANGUAGE_UpdateWindowCaption
();
LANGUAGE_UpdateMenuCheckmarks
();
break
;
}
case
CL_ON_TOP
:
{
/* always on top */
case
0x10D
:
{
Globals
.
bAlwaysOnTop
=
!
Globals
.
bAlwaysOnTop
;
LANGUAGE_UpdateMenuCheckmarks
();
break
;
}
case
CL_SECONDS
:
{
/* show or hide seconds */
case
0x107
:
{
Globals
.
bSeconds
=
!
Globals
.
bSeconds
;
LANGUAGE_UpdateMenuCheckmarks
();
SendMessage
(
Globals
.
hMainWnd
,
WM_PAINT
,
0
,
0
);
break
;
}
case
CL_DATE
:
{
/* show or hide date */
case
0x108
:
{
Globals
.
bDate
=
!
Globals
.
bDate
;
LANGUAGE_UpdateMenuCheckmarks
();
LANGUAGE_UpdateWindowCaption
();
break
;
}
case
CL_INFO_LICENSE
:
{
/* show license */
case
0x109
:
{
WineLicense
(
Globals
.
hMainWnd
);
break
;
}
case
CL_INFO_NO_WARRANTY
:
{
/* show warranties */
case
0x10A
:
{
WineWarranty
(
Globals
.
hMainWnd
);
break
;
}
case
CL_INFO_ABOUT_WINE
:
{
ShellAbout
(
Globals
.
hMainWnd
,
"Clock"
,
"Clock
\n
"
WINE_RELEASE_INFO
,
0
);
/* show "about" box */
case
0x10B
:
{
LoadString
(
Globals
.
hInstance
,
0x10C
,
szApp
,
sizeof
(
szApp
));
lstrcpy
(
szAppRelease
,
szApp
);
lstrcat
(
szAppRelease
,
"
\n
"
WINE_RELEASE_INFO
);
ShellAbout
(
Globals
.
hMainWnd
,
szApp
,
szAppRelease
,
0
);
break
;
}
/* Handle languages */
default:
/*
default:
LANGUAGE_DefaultHandle(wParam);
*/
}
return
0
;
}
...
...
@@ -244,7 +260,7 @@ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show
CW_USEDEFAULT
,
CW_USEDEFAULT
,
Globals
.
MaxX
,
Globals
.
MaxY
,
0
,
LoadMenu
(
Globals
.
hInstance
,
STRING_MENU_Xx
),
Globals
.
hInstance
,
0
);
LANGUAGE_
SelectByName
(
"En"
);
LANGUAGE_
LoadMenus
(
);
SetMenu
(
Globals
.
hMainWnd
,
Globals
.
hMainMenu
);
LANGUAGE_UpdateMenuCheckmarks
();
...
...
programs/clock/main.h
View file @
fdff5230
...
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "clock_res.h"
#define MAX_STRING_LEN 255
#define MAX_PATHNAME_LEN 1024
#define MAX_LANGUAGE_NUMBER (CL_LAST_LANGUAGE - CL_FIRST_LANGUAGE)
...
...
programs/clock/rsrc.rc
View file @
fdff5230
...
...
@@ -21,16 +21,7 @@
#include "windows.h"
#include "main.h"
#define CONCAT(a, b) CONCAT1(a, b)
#define CONCAT1(a, b) a##b
#define ADDSTRING(str) ADDSTRING1(LANGUAGE_NUMBER, IDS_ ## str) STRING_ ## str
#define ADDSTRING1(langnum, ids) ADDSTRING2(langnum, ids)
#define ADDSTRING2(langnum, ids) 0x ## langnum ## ids
#define STRINGIFY(str) STRINGIFY1(str)
#define STRINGIFY1(str) #str
#include "clock_res.h"
#include "Da.rc"
#include "De.rc"
#include "En.rc"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment