From 2434488e501418d0c75bcfd1f8281eb46ee45bbb Mon Sep 17 00:00:00 2001 From: maike Date: Thu, 3 Sep 2026 23:10:44 +0500 Subject: Basic localization implementation --- htdocs/auto.p | 6 ++++++ htdocs/index.html | 12 +++++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 htdocs/auto.p (limited to 'htdocs') diff --git a/htdocs/auto.p b/htdocs/auto.p new file mode 100644 index 0000000..e6c15d3 --- /dev/null +++ b/htdocs/auto.p @@ -0,0 +1,6 @@ +@USE +../lib/classes/l10n.p + +@auto[] +$locale[^l10n::create[en_US;ru]] +#end @main[] diff --git a/htdocs/index.html b/htdocs/index.html index ba13d03..0440b13 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -10,18 +10,16 @@ $photo_thumbnails[ $.[image/jpeg][/img/thumb/me.jpg] ] ^base[михаил «synzr»]{ - ^article[index][Приветствую вас!]{ + ^article[index][^locale.t[index_article_hello_there]]{ ^section[about-me]{ ^figure[$photo_thumbnails;image/jpeg; - $.caption[Моя фотография у останкинского телецентра в Москве] + $.caption[^locale.t[index_me_caption]] $.height[160] $.href[/img/photo/me.jpg] ] -

- Меня зовут Михаил, я платно учусь в частном колледже на IT, - интересуюсь технологиями и коллекционирую музыку на CD-пластинках. - Ну, вроде бы я человек - насколько это возможно. Обожаю лезть, куда не надо. -

+

^locale.html[index_article_hello_there_paragraph_1]

+

^locale.html[index_article_hello_there_paragraph_2]

+

^locale.html[index_article_hello_there_paragraph_3]

}
} -- cgit v1.3