I'm making a GUI in R using the gWidgetsRGtk2 package and I need all messages in English but some appear to me in Spanish. For example:
w<- gwindow("Alert", width=100, height=100)
g <- ggroup(cont = w)
gimage("info", dirname="stock", size="large_toolbar", cont = g)
ig <- ggroup(horizontal = FALSE, cont = g)
glabel(message, cont = ig, expand = TRUE)
bg <- ggroup(cont = ig)
addSpring(bg)
gbutton("cancel", handler = function(h,...) dispose(w), cont = bg, toolkit = guiToolkit())
I need to change the word "Cancelar" to "Cancel".
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=Spanish_Mexico.1252 LC_CTYPE=Spanish_Mexico.1252 LC_MONETARY=Spanish_Mexico.1252
[4] LC_NUMERIC=C LC_TIME=Spanish_Mexico.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] diagram_1.6.2 shape_1.4.0 cluster_1.14.4 plyr_1.8 ade4_1.5-2
[6] vegan_2.0-10 lattice_0.20-15 permute_0.8-0 gWidgetsRGtk2_0.0-82 RGtk2_2.20.25
[11] gWidgets_0.0-52
loaded via a namespace (and not attached):
[1] grid_3.0.1 tools_3.0.1
Thanks for all the suggestions, I could change the messages to English with this line of code:
Sys.setlocale(category = "LC_ALL", locale = "English")