Selaa lähdekoodia

Add more i18n strings (#234)

* Add more i18n strings

* Add the translation strings in other files

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Co-authored-by: hossainemruz <hossainemruz@gmail.com>
Roxedus 4 vuotta sitten
vanhempi
commit
03ea0fae8c

+ 24 - 0
i18n/bn.toml

@@ -70,3 +70,27 @@ other = "পাঠক্রম বহির্ভূত কার্যক্র
 
 [see_more]
 other = "আরো দেখুন"
+
+[responsibilities]
+other = "দায়িত্বসমুহ:"
+
+[present]
+other = "বর্তমান"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/cn.toml

@@ -73,3 +73,27 @@ other = "课外活动"
 
 [see_more]
 other = "查看更多"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/de.toml

@@ -73,3 +73,27 @@ other = "Buitenschoolse activiteiten"
 
 [see_more]
 other = "Bekijk meer"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 19 - 1
i18n/en.toml

@@ -78,4 +78,22 @@ other = "See More"
 other = "Responsibilities:"
 
 [present]
-other = "Present"
+other = "Present"
+
+[comments_javascript]
+other = "Please enable JavaScript to view the"
+
+[comments_by]
+other = "comments powered by"
+
+[read]
+other = "Read"
+
+[project_star]
+other = "Star"
+
+[project_details]
+other = "Details"
+
+[err_404]
+other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/es.toml

@@ -73,3 +73,27 @@ other = "Actividades extracurriculares"
 
 [see_more]
 other = "Ver más"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/fr.toml

@@ -73,3 +73,27 @@ other = "Activités extra-scolaires"
 
 [see_more]
 other = "En savoir plus"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/hi.toml

@@ -73,3 +73,27 @@ other = "अतिरिक्त पाठयक्रम गतिविधि
 
 [see_more]
 other = "और देखें"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/id.toml

@@ -73,3 +73,27 @@ other = "Kegiatan ekstrakulikuler"
 
 [see_more]
 other = "Lihat Selengkapnya"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/it.toml

@@ -73,3 +73,27 @@ other = "Attività extracurriculari"
 
 [see_more]
 other = "Vedi altro"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/jp.toml

@@ -70,3 +70,27 @@ other = "課外活動"
 
 [see_more]
 other = "続きを見る"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/ko.toml

@@ -73,3 +73,27 @@ other = "기타 활동"
 
 [see_more]
 other = "더보기"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/ru.toml

@@ -73,3 +73,27 @@ other = "Внеклассные занятия"
 
 [see_more]
 other = "Узнать больше"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 24 - 0
i18n/vn.toml

@@ -73,3 +73,27 @@ other = "Các hoạt động ngoại khóa"
 
 [see_more]
 other = "Xem thêm"
+
+# [responsibilities]
+# other = "Responsibilities:"
+
+# [present]
+# other = "Present"
+
+# [comments_javascript]
+# other = "Please enable JavaScript to view the"
+
+# [comments_by]
+# other = "comments powered by"
+
+# [read]
+# other = "Read"
+
+# [project_star]
+# other = "Star"
+
+# [project_details]
+# other = "Details"
+
+# [err_404]
+# other = "The page you are looking for is not there yet."

+ 1 - 1
layouts/404.html

@@ -22,7 +22,7 @@
         <img src="{{ $notFoundImage }}" alt="">
         <div class="message">
             <h1>404</h1>
-            <h4>The page you are looking for is not there yet.</h4>
+            <h4>{{ i18n "err_404" }}</h4>
         </div>
     </div>
 </div>

+ 1 - 1
layouts/partials/cards/post.html

@@ -13,7 +13,7 @@
         <a
         href="{{ .RelPermalink | relLangURL }}"
         class="float-right btn btn-outline-info btn-sm"
-        >Read</a
+        >{{ i18n "read" }}</a
         >
       </div>
     </div>

+ 2 - 2
layouts/partials/cards/project.html

@@ -45,7 +45,7 @@
               data-icon="octicon-standard"
               data-show-count="true"
               aria-label="Star {{ .name }}"
-              >Star</a
+              >{{ i18n "project_star" }}</a
             >
             {{ else if .url }}
             <span>
@@ -53,7 +53,7 @@
                 class="btn btn-outline-info btn-sm"
                 href="{{ .url }}"
                 target="#"
-                >Details</a
+                >{{ i18n "project_details" }}</a
               >
             </span>
             {{ end }}

+ 1 - 1
layouts/partials/cards/recent-post.html

@@ -12,7 +12,7 @@
       </div>
       <div class="card-footer">
         <span class="float-left">{{ .Date.Format "January 2, 2006" }}</span>
-        <a href="{{ .RelPermalink }}" class="float-right btn btn-outline-info btn-sm">Read</a>
+        <a href="{{ .RelPermalink }}" class="float-right btn btn-outline-info btn-sm">{{ i18n "read" }}</a>
       </div>
     </div>
   </a>

+ 3 - 3
layouts/partials/disqus.html

@@ -17,11 +17,11 @@
   })();
 </script>
 <noscript
-  >Please enable JavaScript to view the
+  >{{ i18n "comments_javascript" }}
   <a href="https://disqus.com/?ref_noscript"
-    >comments powered by Disqus.</a
+    >{{ i18n "comments_by" }} Disqus.</a
   ></noscript
 >
 <a href="https://disqus.com/" class="dsq-brlink"
-  >comments powered by <span class="logo-disqus">Disqus</span></a
+  >{{ i18n "comments_by" }} <span class="logo-disqus">Disqus</span></a
 >

+ 2 - 2
layouts/partials/sections/experiences/multiple-positions.html

@@ -7,7 +7,7 @@
         {{ $oldestPosition := index (last 1 .positions) 0}}
         {{ $mostRecentPosition := index (first 1 .positions) 0}}
         <p class="text-muted">
-            {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}Present{{ end }},
+            {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }},
             {{ .company.location }}
         </p>
         <!-- Add company overview -->
@@ -17,7 +17,7 @@
     <div class="positions">
     {{ range $index,$position:= .positions }}
         <h6 class="designation">{{ $position.designation }}</h6>
-        <p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} Present {{end}}</p>
+        <p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} {{ i18n "present" }} {{end}}</p>
         <!-- Add the responsibilities handled at this position -->
         <ul class="justify-content-around">
         {{ range $position.responsibilities }}