|
|
| Ian Bell 2006-12-25, 8:09 am |
| proc xmas {
puts "Merry Christmas"
}
Ian
| |
|
| 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 gr lish "xro'nia polla'!"]
:-)
| |
| Donal K. Fellows 2006-12-27, 7:06 pm |
| Andreas Leitgeb wrote:
> #package require i18n
> source i18n.tcl
> puts [i18n::from gr lish "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 gr lish "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 gr lish "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
|
|
|
|