Rather than changing skin.conf you are probably better off adding the 
config in the matching section of weewx.conf, or your changes will be 
overwritten on next update. 
See https://weewx.com/docs/4.10/customizing.htm#customizing_reports

Kranz Liang schrieb am Samstag, 6. Januar 2024 um 11:29:04 UTC+1:

> Thanks!
> The idea of editing the font configuration file in skin.conf was indeed 
> correct. It just turned out that the font I initially chose was not 
> supported. After switching to NotoSansSC, the seasons skin successfully ran
> .[image: 屏幕截图 2024-01-06 182759.png]
>
> 在2024年1月6日星期六 UTC+8 17:59:34<michael.k...@gmx.at> 写道:
>
>> This reveals also a limitation of  WeeWX  current localization support: 
>> according to Wikipedia's interpretation of ISO-639-1 (
>> https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) "Chinese" 
>> is "zh" and there is no way to distinguish between Traditional and 
>> Simplified Chinese. WeeWX documentation (
>> https://weewx.com/docs/5.0/custom/localization/#create-the-localization-file)
>>  
>> doesn't exactly refer to ISO-639-1 but only to "ISO language and country 
>> codes" linking to w3schools (
>> https://www.w3schools.com/tags/ref_language_codes.asp), where w3schools 
>> seems to have i's own interpretation of ISO-639-1  (they are listing 
>> currently 191 language codes where wikipedia lists 184). 
>>
>> WeeWX seems to curve around this by inventing a language abbreviation 
>> unknown to ISO-639-1: "cn" 
>> https://github.com/weewx/weewx/blob/master/skins/Seasons/lang/cn.conf
>>
>> Bottom line: currently I don't know a solution to solve traditional vs. 
>> simplified chinese translation without non-standard workarounds.
>>
>> Back to the very initial topic: @Kranz Liang can you check if you find a 
>> font that works for you there: 
>> https://fonts.google.com/noto/specimen/Noto+Sans+SC 
>> Graham Eddy schrieb am Samstag, 6. Januar 2024 um 05:58:57 UTC+1:
>>
>>> maybe check the font_path in skins.conf, ensure the image generator 
>>> fonts include the simplified chinese symbols
>>> *⊣GE⊢*
>>>
>>> On 6 Jan 2024, at 2:21 pm, Kranz Liang <kran...@gmail.com> wrote:
>>>
>>> I have translated the language files in weewx, converting Traditional 
>>> Chinese into Simplified Chinese and also adjusted some word usages to 
>>> better conform with the linguistic habits of users in Simplified Chinese 
>>> regions. However, after these modifications, I am encountering garbled 
>>> characters on the display interface and am unable to resolve this issue.
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4b4d9b30-7a8b-4cb5-a3c0-aa8e9c4511e6n%40googlegroups.com.

Reply via email to