summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authormaike <maike@synzr.tw>2026-09-03 23:10:44 +0500
committermaike <maike@synzr.tw>2026-09-03 23:10:44 +0500
commit2434488e501418d0c75bcfd1f8281eb46ee45bbb (patch)
tree0e64a3125b9e50e1cbcc03045950eb3c285ac986 /htdocs
parentb5dcc96742cc2cbf98e4c0f734e842418e4f4307 (diff)
downloadhamster-2434488e501418d0c75bcfd1f8281eb46ee45bbb.tar.gz
hamster-2434488e501418d0c75bcfd1f8281eb46ee45bbb.tar.bz2
hamster-2434488e501418d0c75bcfd1f8281eb46ee45bbb.zip
Basic localization implementationHEADmain
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/auto.p6
-rw-r--r--htdocs/index.html12
2 files changed, 11 insertions, 7 deletions
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]
]
- <p class="text">
- Меня зовут Михаил, я платно учусь в частном колледже на IT,
- интересуюсь технологиями и коллекционирую музыку на CD-пластинках.
- Ну, вроде бы я человек - насколько это возможно. Обожаю лезть, куда не надо.
- </p>
+ <p class="text">^locale.html[index_article_hello_there_paragraph_1]</p>
+ <p class="text">^locale.html[index_article_hello_there_paragraph_2]</p>
+ <p class="text">^locale.html[index_article_hello_there_paragraph_3]</p>
}
<hr class="divider">
}