For Programmers: Free Programming Magazines  


Home > Archive > Tcl > December 2006 > Christmas









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Christmas
Ian Bell

2006-12-25, 8:09 am

proc xmas {
puts "Merry Christmas"
}

Ian
jkj

2006-12-26, 7:12 pm

proc xmas_es {
puts "Feliz Navidad y pr=F3spero a=F1o nuevo!"
}

-Kevin

Ian Bell wrote:
> proc xmas {
> puts "Merry Christmas"
> }
>=20
> Ian


Stephan Kuhagen

2006-12-26, 7:12 pm

jkj wrote:

> proc xmas_es {
> puts "Feliz Navidad y próspero año nuevo!"
> }


package require i18n

proc xmas_i18n {} {
puts [I18N::mc "Frohe Weihnachten"]
}

;-)))

Regards
Stephan

Andreas Leitgeb

2006-12-27, 7:06 pm

Stephan Kuhagen <stk@nospam.tld> wrote:
> jkj wrote:
> package require i18n
> proc xmas_i18n {} {
> puts [I18N::mc "Frohe Weihnachten"]
> }


#package require i18n
source i18n.tcl
puts [i18n::from grlish "xro'nia polla'!"]

:-)
Donal K. Fellows

2006-12-27, 7:06 pm

Andreas Leitgeb wrote:
> #package require i18n
> source i18n.tcl
> puts [i18n::from grlish "xro'nia polla'!"]


Sheesh! Let's do this right...

package require msgcat
package require i18n
proc xmas {} {
puts [msgcat::mc "Merry Christmas!"]
}
msgcat::mcset es "Merry Christmas!" "Feliz Navidad!"
msgcat::mcset de "Merry Christmas!" "Frohe Weihnachten"
msgcat::mcset el "Merry Christmas!" \
[i18n::from grlish "xro'nia polla'!"]
# OK, ought to write the full message catalogs...

Donal.
Michael A. Cleverly

2006-12-27, 7:06 pm

On Thu, 28 Dec 2006, Donal K. Fellows wrote:

> Sheesh! Let's do this right...
>
> package require msgcat
> package require i18n
> proc xmas {} {
> puts [msgcat::mc "Merry Christmas!"]
> }
> msgcat::mcset es "Merry Christmas!" "Feliz Navidad!"
> msgcat::mcset de "Merry Christmas!" "Frohe Weihnachten"
> msgcat::mcset el "Merry Christmas!" \
> [i18n::from grlish "xro'nia polla'!"]
> # OK, ought to write the full message catalogs...


msgcat::mcset pt "Merry Christmas!" "Feliz Natal"

Also:

interp alias {} noel {} string map -nocase {l {}}

Michael
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com