Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-05-21 04:44:26 +0300
committerVincent Tam <sere@live.hk>2019-05-21 04:44:54 +0300
commite661fed5bfa6d6a633842c6c3ac6fdfd4db63a0b (patch)
tree9c7bac44370acda0022464ca6ea0f25431844297 /layouts
parentc9e48180845fc19f8c111d551ba8b3faa67aa927 (diff)
Staticman i18n
Ce script en AWK a été appliqué ```awk /^# [A-Z].*/,/^[a-z-]+:/ { print $0 } /^[a-z-]+:/ { sub(":", "", $1) system("ls i18n | grep -q " $1 " && echo true || echo false"); print "" } /comment_btn_submit/,/comment_error_msg/ { split($1, a, "_") a31 = toupper(substr(a[3],1,1)) a32 = substr(a[3],2) print("- id: " a[2] a31 a32) split($0, b, " : ") print(" translation: " b[2]) } /comment_error_msg/ { print "" } ``` sur le fichier d'i18n du thème Beautiful Jekyll. J'ai vérifié mot à mot de l'esperanto. Néanmoins, le norvégien est d'autant plus dûr que j'avais pas envie de vérifier son grammaire.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/staticman-comments.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/staticman-comments.html b/layouts/partials/staticman-comments.html
index 03f5dd5..4e75ebc 100644
--- a/layouts/partials/staticman-comments.html
+++ b/layouts/partials/staticman-comments.html
@@ -76,9 +76,9 @@
{{ end }}
<textarea name="fields[comment]" placeholder="{{ i18n "useMarkdown" }}"></textarea>
- <input type="text" name="fields[name]" placeholder="{{ i18n "yourName" }}"/>
- <input type="email" name="fields[email]" placeholder="{{ i18n "yourEmail" }}"/>
- <input type="text" name="fields[website]" placeholder="{{ i18n "yourWebsite" }}"/>
+ <input type="text" name="fields[name]" placeholder="{{ i18n "yourName" }}">
+ <input type="email" name="fields[email]" placeholder="{{ i18n "yourEmail" }}">
+ <input type="text" name="fields[website]" placeholder="{{ i18n "yourWebsite" }}">
{{ if .Site.Params.staticman.recaptcha }}
<div class="g-recaptcha" data-sitekey="{{ .Site.Params.staticman.recaptcha.sitekey }}"></div>
@@ -90,7 +90,7 @@
</p>
<!-- End comment form alert messaging -->
- <input type="submit" value="Submit" class="button">
- <input type="reset" value="Reset" class="button">
+ <input type="submit" value="{{ i18n "btnSubmit" }}" class="button">
+ <input type="reset" value="{{ i18n "btnReset" }}" class="button">
</form>
</section>