Jump to content

Recommended Posts

Posted

hello

is being created in my Autounattend.xml file (windows 7) which will be included as the clock gadget and weather. Is it possible to change the default city (Paris) by my home town Saint-Denis, whether it should indicate in the Autounattend.xml file or by other means.

Cordially

Posted (edited)

You could edit the gadget, you coul also copy your settings.ini file to the sidebar dir and replace the default

Let me investigate

thank you for your answer but your solution does not work for me, looking in Weather.Gadget, I found that some cities were pre-selected, so I replaced the word "Paris" present into localizedstrings.js and weather.js files. These two files are located in the folder language\js (fr-FR for me because I'm French) of Weather.Gadget.

Words changed into localizedstrings.js :

Original Text

////////////////////////////////////////////////////////////////////////////////

//

// Localized City Names ( for defualt city based on OS Locale Setting )

//

////////////////////////////////////////////////////////////////////////////////

var LOCNAME_ARRAY = new Array('??????? ??????? ????????? / ??????? ','??','Praha','København','Berlin','????a','New York, NY','Helsinki','Paris','???????',' etc................

Modify Text

////////////////////////////////////////////////////////////////////////////////

//

// Localized City Names ( for defualt city based on OS Locale Setting )

//

////////////////////////////////////////////////////////////////////////////////

var LOCNAME_ARRAY = new Array('??????? ??????? ????????? / ??????? ','??','Praha','København','Berlin','????a','New York, NY','Helsinki','Saint-Denis','???????',' etc................

Original Text

////////////////////////////////////////////////////////////////////////////////

//

// Default values for this locale

//

////////////////////////////////////////////////////////////////////////////////

L_localizedStrings_Text['DefaultCity'] = 'Paris, Ville de Paris';

L_localizedStrings_Text['DefaultLocationCode'] = 'wc:FRXX0076';

L_localizedStrings_Text['DefaultUnit'] = 'Celsius';

Modify Text

////////////////////////////////////////////////////////////////////////////////

//

// Default values for this locale

//

////////////////////////////////////////////////////////////////////////////////

L_localizedStrings_Text['DefaultCity'] = 'Saint-Denis, REU';

L_localizedStrings_Text['DefaultLocationCode'] = 'wc:42152';

L_localizedStrings_Text['DefaultUnit'] = 'Celsius';

Words changed into weather.js :

Original Text

var LCID_ARRAY = new Array(1025,1028,1029,1030,1031,1032,1033,1035,1036,1037,1038, etc................

var LOCCODE_ARRAY = new Array("wc:SAXX0017","wc:TWXX0021","wc:EZXX0012","wc:DAXX0009","wc:GMXX0007","wc:GRXX0004","wc:USNY0996","wc:FIXX0002","wc:FRXX0076", etc................

Modify Text

var LCID_ARRAY = new Array(1025,1028,1029,1030,1031,1032,1033,1035,1036,1037,1038, etc................

var LOCCODE_ARRAY = new Array("wc:SAXX0017","wc:TWXX0021","wc:EZXX0012","wc:DAXX0009","wc:GMXX0007","wc:GRXX0004","wc:USNY0996","wc:FIXX0002","wc:42152", etc................

Respect the position of your language and the code of your city, French is the code 1036 and is the 9 positions.

You can find your city code here : http://meteo.msn.com/, enter city name and you can see city code in the adress bar (example : h**p://meteo.msn.com/local.aspx?wealocations=wc:42152&q=Saint-Denis%2c+REU)

After changed words, remplace the original files into install.wim. If you have problem to change files into install.wim, create a SFX file, use setupcomplete.cmd to run your SFX file

I do not know if this is the best method, but it works for me.

Edited by CocoNuts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...