From 33eafaeb84d66c7495d63591cdeebdf60d2a0a66 Mon Sep 17 00:00:00 2001 From: Jason Liquorish Date: Fri, 5 Oct 2018 18:12:23 +0100 Subject: [PATCH 1/3] Update static code example Updates thes static code example on the index page to match the dynamic code example. --- _includes/example.rs.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/_includes/example.rs.html b/_includes/example.rs.html index eba8fd944..c93500c55 100644 --- a/_includes/example.rs.html +++ b/_includes/example.rs.html @@ -1,7 +1,10 @@
 fn main() {
     let greetings = ["Hello", "Hola", "Bonjour",
-                     "こんにちは", "您好"];
+                     "Ciao", "こんにちは", "안녕하세요",
+                     "Cześć", "Olá", "Здравствуйте",
+                     "Chào bạn", "您好", "Hallo",
+                     "Hej", "Ahoj", "سلام", "สวัสดี"];
 
     for (num, greeting) in greetings.iter().enumerate() {
         println!("{}", greeting);
@@ -9,10 +12,21 @@
             0 =>  println!("This code is editable and runnable!"),
             1 =>  println!("¡Este código es editable y ejecutable!"),
             2 =>  println!("Ce code est modifiable et exécutable !"),
-            3 =>  println!("このコードは編集して実行出来ます!"),
-            4 =>  println!("这段代码是可以编辑并且能够运行的!"),
+            3 =>  println!("Questo codice è modificabile ed eseguibile!"),
+            4 =>  println!("このコードは編集して実行出来ます!"),
+            5 =>  println!("여기에서 코드를 수정하고 실행할 수 있습니다!"),
+            6 =>  println!("Ten kod można edytować oraz uruchomić!"),
+            7 =>  println!("Este código é editável e executável!"),
+            8 =>  println!("Этот код можно отредактировать и запустить!"),
+            9 =>  println!("Bạn có thể edit và run code trực tiếp!"),
+            10 => println!("这段代码是可以编辑并且能够运行的!"),
+            11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"),
+            12 => println!("Den här koden kan redigeras och köras!"),
+            13 => println!("Tento kód můžete upravit a spustit"),
+            14 => println!("این کد قابلیت ویرایش و اجرا دارد!"),
+            15 => println!("โค้ดนี้สามารถแก้ไขได้และรันได้"),
             _ =>  {},
         }
     }
 }
-
+ \ No newline at end of file From 666e59beae94632ce3e6ed5dda4341021c2b8fb1 Mon Sep 17 00:00:00 2001 From: Jason Liquorish Date: Fri, 12 Oct 2018 18:25:25 +0100 Subject: [PATCH 2/3] Add exclamation to Czech and Thai strings --- _includes/example.rs | 4 ++-- _includes/example.rs.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/example.rs b/_includes/example.rs index 6e5bf644a..15026341c 100644 --- a/_includes/example.rs +++ b/_includes/example.rs @@ -21,9 +21,9 @@ fn main() { 10 => println!("这段代码是可以编辑并且能够运行的!"), 11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"), 12 => println!("Den här koden kan redigeras och köras!"), - 13 => println!("Tento kód můžete upravit a spustit"), + 13 => println!("Tento kód můžete upravit a spustit!"), 14 => println!("این کد قابلیت ویرایش و اجرا دارد!"), - 15 => println!("โค้ดนี้สามารถแก้ไขได้และรันได้"), + 15 => println!("โค้ดนี้สามารถแก้ไขได้และรันได้!"), _ => {}, } } diff --git a/_includes/example.rs.html b/_includes/example.rs.html index c93500c55..758bb9c67 100644 --- a/_includes/example.rs.html +++ b/_includes/example.rs.html @@ -22,9 +22,9 @@ 10 => println!("这段代码是可以编辑并且能够运行的!"), 11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"), 12 => println!("Den här koden kan redigeras och köras!"), - 13 => println!("Tento kód můžete upravit a spustit"), + 13 => println!("Tento kód můžete upravit a spustit!"), 14 => println!("این کد قابلیت ویرایش و اجرا دارد!"), - 15 => println!("โค้ดนี้สามารถแก้ไขได้และรันได้"), + 15 => println!("โค้ดนี้สามารถแก้ไขได้และรันได้!"), _ => {}, } } From c98b359261cd22cdf9e634c737f461018d72eb5f Mon Sep 17 00:00:00 2001 From: Jason Liquorish Date: Fri, 12 Oct 2018 18:48:50 +0100 Subject: [PATCH 3/3] Move exclamation mark for Persian example --- _includes/example.rs | 2 +- _includes/example.rs.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/example.rs b/_includes/example.rs index 15026341c..efd71d5f0 100644 --- a/_includes/example.rs +++ b/_includes/example.rs @@ -22,7 +22,7 @@ fn main() { 11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"), 12 => println!("Den här koden kan redigeras och köras!"), 13 => println!("Tento kód můžete upravit a spustit!"), - 14 => println!("این کد قابلیت ویرایش و اجرا دارد!"), + 14 => println!("!این کد قابلیت ویرایش و اجرا دارد"), 15 => println!("โค้ดนี้สามารถแก้ไขได้และรันได้!"), _ => {}, } diff --git a/_includes/example.rs.html b/_includes/example.rs.html index 758bb9c67..74183a745 100644 --- a/_includes/example.rs.html +++ b/_includes/example.rs.html @@ -23,7 +23,7 @@ 11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"), 12 => println!("Den här koden kan redigeras och köras!"), 13 => println!("Tento kód můžete upravit a spustit!"), - 14 => println!("این کد قابلیت ویرایش و اجرا دارد!"), + 14 => println!("!این کد قابلیت ویرایش و اجرا دارد"), 15 => println!("โค้ดนี้สามารถแก้ไขได้และรันได้!"), _ => {}, }