cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cordova Wiki] Update of "CordovaTranslations" by ldeluca
Date Fri, 28 Feb 2014 19:42:16 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "CordovaTranslations" page has been changed by ldeluca:
https://wiki.apache.org/cordova/CordovaTranslations?action=diff&rev1=41&rev2=42

Comment:
Updated scripts to show the latest with the plugin repositories housing their own documentation

  {{{
  project_identifier: cordova
  api_key: ____ourAPIkey________
- base_path: /home/<username>/git/cordova-docs     #working copy path
+ base_path: /home/<username>/git     #working copy path
  
  files:
    -
-     source: "/docs/en/edge/**/*.md"
+     source: "/cordova-docs/docs/en/edge/**/*.md"
-     translation: "/docs/%two_letters_code%/edge/**/%original_file_name%"
+     translation: "/cordova-docs/docs/%two_letters_code%/edge/**/%original_file_name%"
      ignore:
        - /.git
+   -
+     source: "/**/doc/*.md"
+     translation: "/**/doc/%two_letters_code%/%original_file_name%"
+     ignore: 
+       - /.git
  }}}
  It is recommended that Crowdin be pulled from a fork of the cordova-docs github project
rather than directly from the main project.  This script grabs the markdown .md files from
the docs/en/edge directory and pushes them into the Crowdin service for each of the lanuages
that are available within crowdin.  For information on the api_key value, please email the
crowdin project administrator: ldeluca@apache.org
  
@@ -48, +53 @@

  DOMAIN_NAME='http://api.crowdin.net'
  
  #---CHANGE THE VARIABLES BELOW---
+ BASE_GIT_REPO_PATH=/home/<username>/git/
  GIT_REPO_PATH=/home/<username>/git/cordova-docs
  CROWDIN_CLI_PATH=/path/to/crowdincli
  PROJECT_IDENTIFIER='cordova'
  PROJECT_KEY='___________same API key as above________'
  
+ #--- git repos
+ ## declare an array variable
+ declare -a gitrepos=("cordova-docs" "cordova-plugin-battery-status" "cordova-plugin-camera"
"cordova-plugin-contacts" "cordova-plugin-device" "cordova-plugin-device-motion" "cordova-plugin-dialogs"
"cordova-plugin-file" "cordova-plugin-file-transfer" "cordova-plugin-geolocation" "cordova-plugin-globalization"
"cordova-plugin-inappbrowser" "cordova-plugin-media" "cordova-plugin-media-capture" "cordova-plugin-network-information"
"cordova-plugin-splashscreen" "cordova-plugin-vibration")
  #---
  
+ ## now loop through the gitrepos array
+ for i in "${gitrepos[@]}"
+ do
+    echo "**************** $i *************************"
- cd $GIT_REPO_PATH
+    cd $BASE_GIT_REPO_PATH/$i
+ 
+    # below pushes changes from local to fork
- git pull origin master
+    git pull origin master
- git push origin
+    git push origin
+ done
  
  cd $CROWDIN_CLI_PATH
  
@@ -95, +111 @@

  find /home/<username>/git/cordova-docs/docs -name \*.md -exec sed -i "s/## under the
License./   under the License.\n---/g" {} \;
  echo "Done with crowdin fix"
  
+ ## now loop through the gitrepos array
+ for i in "${gitrepos[@]}"
+ do
+    echo "**************** $i *************************"
- cd $GIT_REPO_PATH
+    cd $BASE_GIT_REPO_PATH/$i
-   git add .
+    git add .
-   git commit -m 'Synchronization with Crowdin'
+    git commit -m "Lisa testing pulling in plugins for plugin: $i"
-   git push origin
+    git push origin
+ done
  }}}
  === Script output ===
  The script will print out the name of each file being downloaded
@@ -317, +338 @@

   - `docs/zh/README.md'
  Crowdin has internal caching mechanisms that prevents us from overload. Please try to download
translations later.
  }}}
- This message can be ignored.  It does not affect the downloaded files.
+ This message can be ignored.  It does not affect the downloaded files.  It simply means
that that markdown file no longer exists.  Please open a JIRA issue and assign to Lisa DeLuca
to let her know if you see this error.  Then the file can be removed from the crowdin file
manager.
  
  {{{
  A communication error occured: ""
@@ -327, +348 @@

  <FONT face="Helvetica">
  The Web Server may be down, too busy, or experiencing other problems preventing it from
responding to requests.  You may wish to try again at a later time.
  }}}
- It is often the case where you will see a message that crowdin is down, like the one shown
above.  In which case you'll need to wait until Crowdin is back up or email their support
team at: __ mailto:support@crowdin.net __
+ It is often the case where you will see a message that crowdin is down, like the one shown
above.  In which case you'll need to wait until Crowdin is back up or email their support
team at: __ mailto:support@crowdin.net __.  Alternatively, it could just mean that a manual
build needs to be kicked off within the Crowdin tool.  Under Settings > Translation >
click the button to build a fresh package.
  
  == Testing Translations ==
  Before performing a pull request it is recommended that each language be built locally and
tested for accuracy.  To do this, run the following script

Mime
View raw message