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=33&rev2=34 === github-crowdin.sh === The github-crowdin.sh script is the script that is run to initiate the translation flow. It is a custom script that first pushes any of the changed markdown files into crowdin. It then searches through all of the languages from crowdin and downloads only those languages that are 100% translated. Finally, it pushes the translated language files back into github. - {{{#!/bin/bash - DOMAIN_NAME='http://api.crowdin.net' + {{{ + }}} + === Script output === + The script will print out the name of each file being downloaded - #---CHANGE THE VARIABLES BELOW--- - GIT_REPO_PATH=/home/<username>/git/cordova-docs - CROWDIN_CLI_PATH=/path/to/crowdincli - PROJECT_IDENTIFIER='cordova' - PROJECT_KEY='___sameAPIkeyAsAbove_____' - - #--- - - cd $GIT_REPO_PATH - git pull origin master - git push origin - - cd $CROWDIN_CLI_PATH - - java -jar crowdin-cli.jar upload sources - - curl $DOMAIN_NAME/api/project/$PROJECT_IDENTIFIER/status?key=$PROJECT_KEY > result.xml - - read_dom () { - local IFS=\> - read -d \< ENTITY CONTENT - } - - while read_dom; do - if [[ $ENTITY = "code" ]] ; then - code=( "${code[@]}" "$CONTENT" ) - fi - if [[ $ENTITY = "translated_progress" ]] ; then - progress=( "${progress[@]}" "$CONTENT" ) - fi - done < result.xml - - for (( i = 0; i < ${#progress[@]}; i++ )); do - if [ "${progress[$i]}" = "100" ]; then - index=( "${index[@]}" "$i" ) - fi - done - - for element in "${index[@]}"; do - java -jar crowdin-cli.jar download -l ${code[$element]} - done - - # fix crowdin issues: + {{{ + Download: `/docs/zh/edge/cordova/accelerometer/accelerometer.clearWatch.md' + Download: `/docs/zh/edge/cordova/accelerometer/accelerometer.getCurrentAcceleration.md' + Download: `/docs/zh/edge/cordova/accelerometer/accelerometer.md' + Download: `/docs/zh/edge/cordova/accelerometer/accelerometer.watchAcceleration.md' + Download: `/docs/zh/edge/cordova/accelerometer/acceleration/acceleration.md' + Download: `/docs/zh/edge/cordova/accelerometer/parameters/accelerometerSuccess.md' + Download: `/docs/zh/edge/cordova/accelerometer/parameters/accelerometerOptions.md' + Download: `/docs/zh/edge/cordova/accelerometer/parameters/accelerometerError.md' + Download: `/docs/zh/edge/cordova/camera/camera.cleanup.md' + Download: `/docs/zh/edge/cordova/camera/camera.getPicture.md' + Download: `/docs/zh/edge/cordova/camera/camera.md' + Download: `/docs/zh/edge/cordova/camera/parameter/CameraPopoverHandle.md' + Download: `/docs/zh/edge/cordova/camera/parameter/cameraSuccess.md' + Download: `/docs/zh/edge/cordova/camera/parameter/cameraOptions.md' + Download: `/docs/zh/edge/cordova/camera/parameter/cameraError.md' + Download: `/docs/zh/edge/cordova/camera/parameter/CameraPopoverOptions.md' + Download: `/docs/zh/edge/cordova/compass/compass.getCurrentHeading.md' + Download: `/docs/zh/edge/cordova/compass/compass.md' + Download: `/docs/zh/edge/cordova/compass/compass.watchHeading.md' + Download: `/docs/zh/edge/cordova/compass/compass.watchHeadingFilter.md' + Download: `/docs/zh/edge/cordova/compass/compass.clearWatch.md' + Download: `/docs/zh/edge/cordova/compass/compass.clearWatchFilter.md' + Download: `/docs/zh/edge/cordova/compass/compassError/compassError.md' + Download: `/docs/zh/edge/cordova/compass/parameters/compassSuccess.md' + Download: `/docs/zh/edge/cordova/compass/parameters/compassOptions.md' + Download: `/docs/zh/edge/cordova/compass/parameters/compassHeading.md' + Download: `/docs/zh/edge/cordova/compass/parameters/compassError.md' + Download: `/docs/zh/edge/cordova/connection/connection.md' + Download: `/docs/zh/edge/cordova/connection/connection.type.md' + Download: `/docs/zh/edge/cordova/contacts/contacts.find.md' + Download: `/docs/zh/edge/cordova/contacts/contacts.md' + Download: `/docs/zh/edge/cordova/contacts/contacts.create.md' + Download: `/docs/zh/edge/cordova/contacts/Contact/contact.md' + Download: `/docs/zh/edge/cordova/contacts/ContactAddress/contactaddress.md' + Download: `/docs/zh/edge/cordova/contacts/ContactError/contactError.md' + Download: `/docs/zh/edge/cordova/contacts/ContactField/contactfield.md' + Download: `/docs/zh/edge/cordova/contacts/ContactFindOptions/contactfindoptions.md' + Download: `/docs/zh/edge/cordova/contacts/ContactName/contactname.md' + Download: `/docs/zh/edge/cordova/contacts/ContactOrganization/contactorganization.md' + Download: `/docs/zh/edge/cordova/contacts/parameters/contactSuccess.md' + Download: `/docs/zh/edge/cordova/contacts/parameters/contactFindOptions.md' + Download: `/docs/zh/edge/cordova/contacts/parameters/contactFields.md' + Download: `/docs/zh/edge/cordova/contacts/parameters/contactError.md' + Download: `/docs/zh/edge/cordova/device/device.model.md' + Download: `/docs/zh/edge/cordova/device/device.name.md' + Download: `/docs/zh/edge/cordova/device/device.platform.md' + Download: `/docs/zh/edge/cordova/device/device.uuid.md' + Download: `/docs/zh/edge/cordova/device/device.version.md' + Download: `/docs/zh/edge/cordova/device/device.cordova.md' + Download: `/docs/zh/edge/cordova/device/device.md' + Download: `/docs/zh/edge/cordova/events/events.md' + Download: `/docs/zh/edge/cordova/events/events.menubutton.md' + Download: `/docs/zh/edge/cordova/events/events.offline.md' + Download: `/docs/zh/edge/cordova/events/events.online.md' + Download: `/docs/zh/edge/cordova/events/events.pause.md' + Download: `/docs/zh/edge/cordova/events/events.resume.md' + Download: `/docs/zh/edge/cordova/events/events.searchbutton.md' + Download: `/docs/zh/edge/cordova/events/events.startcallbutton.md' + Download: `/docs/zh/edge/cordova/events/events.volumedownbutton.md' + Download: `/docs/zh/edge/cordova/events/events.volumeupbutton.md' + Download: `/docs/zh/edge/cordova/events/events.backbutton.md' + Download: `/docs/zh/edge/cordova/events/events.batterycritical.md' + Download: `/docs/zh/edge/cordova/events/events.batterylow.md' + Download: `/docs/zh/edge/cordova/events/events.batterystatus.md' + Download: `/docs/zh/edge/cordova/events/events.deviceready.md' + Download: `/docs/zh/edge/cordova/events/events.endcallbutton.md' + Download: `/docs/zh/edge/cordova/file/file.md' + Download: `/docs/zh/edge/cordova/file/directoryentry/directoryentry.md' + Download: `/docs/zh/edge/cordova/file/directoryreader/directoryreader.md' + Download: `/docs/zh/edge/cordova/file/fileentry/fileentry.md' + Download: `/docs/zh/edge/cordova/file/fileerror/fileerror.md' + Download: `/docs/zh/edge/cordova/file/fileobj/fileobj.md' + Download: `/docs/zh/edge/cordova/file/filereader/filereader.md' + Download: `/docs/zh/edge/cordova/file/filesystem/filesystem.md' + Download: `/docs/zh/edge/cordova/file/filetransfer/filetransfer.md' + Download: `/docs/zh/edge/cordova/file/filetransfererror/filetransfererror.md' + Download: `/docs/zh/edge/cordova/file/fileuploadoptions/fileuploadoptions.md' + Download: `/docs/zh/edge/cordova/file/fileuploadresult/fileuploadresult.md' + Download: `/docs/zh/edge/cordova/file/filewriter/filewriter.md' + Download: `/docs/zh/edge/cordova/file/flags/flags.md' + Download: `/docs/zh/edge/cordova/file/localfilesystem/localfilesystem.md' + Download: `/docs/zh/edge/cordova/file/metadata/metadata.md' + Download: `/docs/zh/edge/cordova/geolocation/geolocation.getCurrentPosition.md' + Download: `/docs/zh/edge/cordova/geolocation/geolocation.md' + Download: `/docs/zh/edge/cordova/geolocation/geolocation.watchPosition.md' + Download: `/docs/zh/edge/cordova/geolocation/geolocation.clearWatch.md' + Download: `/docs/zh/edge/cordova/geolocation/Coordinates/coordinates.md' + Download: `/docs/zh/edge/cordova/geolocation/Position/position.md' + Download: `/docs/zh/edge/cordova/geolocation/PositionError/positionError.md' + Download: `/docs/zh/edge/cordova/geolocation/parameters/geolocationSuccess.md' + Download: `/docs/zh/edge/cordova/geolocation/parameters/geolocationError.md' + Download: `/docs/zh/edge/cordova/geolocation/parameters/geolocation.options.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.getNumberPattern.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.getPreferredLanguage.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.isDayLightSavingsTime.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.numberToString.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.stringToDate.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.stringToNumber.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.dateToString.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.getCurrencyPattern.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.getDateNames.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.getDatePattern.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.getFirstDayOfWeek.md' + Download: `/docs/zh/edge/cordova/globalization/globalization.getLocaleName.md' + Download: `/docs/zh/edge/cordova/globalization/GlobalizationError/globalizationerror.md' + Download: `/docs/zh/edge/cordova/inappbrowser/inappbrowser.md' + Download: `/docs/zh/edge/cordova/inappbrowser/window.open.md' + Download: `/docs/zh/edge/cordova/media/media.getCurrentPosition.md' + Download: `/docs/zh/edge/cordova/media/media.getDuration.md' + Download: `/docs/zh/edge/cordova/media/media.md' + Download: `/docs/zh/edge/cordova/media/media.pause.md' + Download: `/docs/zh/edge/cordova/media/media.play.md' + Download: `/docs/zh/edge/cordova/media/media.release.md' + Download: `/docs/zh/edge/cordova/media/media.seekTo.md' + Download: `/docs/zh/edge/cordova/media/media.setVolume.md' + Download: `/docs/zh/edge/cordova/media/media.startRecord.md' + Download: `/docs/zh/edge/cordova/media/media.stop.md' + Download: `/docs/zh/edge/cordova/media/media.stopRecord.md' + Download: `/docs/zh/edge/cordova/media/MediaError/mediaError.md' + Download: `/docs/zh/edge/cordova/media/Parameters/mediaError.md' + Download: `/docs/zh/edge/cordova/media/capture/captureAudio.md' + Download: `/docs/zh/edge/cordova/media/capture/captureAudioOptions.md' + Download: `/docs/zh/edge/cordova/media/capture/captureImageOptions.md' + Download: `/docs/zh/edge/cordova/media/capture/captureVideo.md' + Download: `/docs/zh/edge/cordova/media/capture/captureImage.md' + Download: `/docs/zh/edge/cordova/media/capture/captureVideoOptions.md' + Download: `/docs/zh/edge/cordova/media/capture/capture.md' + Download: `/docs/zh/edge/cordova/media/capture/MediaFile.getFormatData.md' + Download: `/docs/zh/edge/cordova/media/capture/MediaFileData.md' + Download: `/docs/zh/edge/cordova/media/capture/MediaFile.md' + Download: `/docs/zh/edge/cordova/media/capture/ConfigurationData.md' + Download: `/docs/zh/edge/cordova/media/capture/CaptureErrorCB.md' + Download: `/docs/zh/edge/cordova/media/capture/CaptureError.md' + Download: `/docs/zh/edge/cordova/media/capture/CaptureCB.md' + Download: `/docs/zh/edge/cordova/notification/notification.confirm.md' + Download: `/docs/zh/edge/cordova/notification/notification.md' + Download: `/docs/zh/edge/cordova/notification/notification.prompt.md' + Download: `/docs/zh/edge/cordova/notification/notification.vibrate.md' + Download: `/docs/zh/edge/cordova/notification/notification.alert.md' + Download: `/docs/zh/edge/cordova/notification/notification.beep.md' + Download: `/docs/zh/edge/cordova/splashscreen/splashscreen.md' + Download: `/docs/zh/edge/cordova/splashscreen/splashscreen.show.md' + Download: `/docs/zh/edge/cordova/splashscreen/splashscreen.hide.md' + Download: `/docs/zh/edge/cordova/storage/storage.md' + Download: `/docs/zh/edge/cordova/storage/storage.opendatabase.md' + Download: `/docs/zh/edge/cordova/storage/database/database.md' + Download: `/docs/zh/edge/cordova/storage/localstorage/localstorage.md' + Download: `/docs/zh/edge/cordova/storage/parameters/version.md' + Download: `/docs/zh/edge/cordova/storage/parameters/display_name.md' + Download: `/docs/zh/edge/cordova/storage/parameters/size.md' + Download: `/docs/zh/edge/cordova/storage/parameters/name.md' + Download: `/docs/zh/edge/cordova/storage/sqlerror/sqlerror.md' + Download: `/docs/zh/edge/cordova/storage/sqlresultset/sqlresultset.md' + Download: `/docs/zh/edge/cordova/storage/sqlresultsetrowlist/sqlresultsetrowlist.md' + Download: `/docs/zh/edge/cordova/storage/sqltransaction/sqltransaction.md' + Download: `/docs/zh/edge/guide/cli/index.md' + Download: `/docs/zh/edge/guide/overview/index.md' + Download: `/docs/zh/edge/guide/platforms/index.md' + Download: `/docs/zh/edge/guide/platforms/android/plugin.md' + Download: `/docs/zh/edge/guide/platforms/android/tools.md' + Download: `/docs/zh/edge/guide/platforms/android/upgrading.md' + Download: `/docs/zh/edge/guide/platforms/android/webview.md' + Download: `/docs/zh/edge/guide/platforms/android/config.md' + Download: `/docs/zh/edge/guide/platforms/android/index.md' + Download: `/docs/zh/edge/guide/platforms/blackberry/plugin.md' + Download: `/docs/zh/edge/guide/platforms/blackberry/tools.md' + Download: `/docs/zh/edge/guide/platforms/blackberry/upgrading.md' + Download: `/docs/zh/edge/guide/platforms/blackberry/config.md' + Download: `/docs/zh/edge/guide/platforms/blackberry/index.md' + Download: `/docs/zh/edge/guide/platforms/blackberry10/plugin.md' + Download: `/docs/zh/edge/guide/platforms/blackberry10/tools.md' + Download: `/docs/zh/edge/guide/platforms/blackberry10/index.md' + Download: `/docs/zh/edge/guide/platforms/blackberry10/upgrading.md' + Download: `/docs/zh/edge/guide/platforms/blackberry10/config.md' + Download: `/docs/zh/edge/guide/platforms/firefoxos/config.md' + Download: `/docs/zh/edge/guide/platforms/ios/tools.md' + Download: `/docs/zh/edge/guide/platforms/ios/upgrading.md' + Download: `/docs/zh/edge/guide/platforms/ios/webview.md' + Download: `/docs/zh/edge/guide/platforms/ios/config.md' + Download: `/docs/zh/edge/guide/platforms/ios/index.md' + Download: `/docs/zh/edge/guide/platforms/ios/plugin.md' + Download: `/docs/zh/edge/guide/platforms/tizen/index.md' + Download: `/docs/zh/edge/guide/platforms/win8/tools.md' + Download: `/docs/zh/edge/guide/platforms/win8/upgrading.md' + Download: `/docs/zh/edge/guide/platforms/win8/index.md' + Download: `/docs/zh/edge/guide/platforms/wp7/index.md' + Download: `/docs/zh/edge/guide/platforms/wp8/tools.md' + Download: `/docs/zh/edge/guide/platforms/wp8/upgrading.md' + Download: `/docs/zh/edge/guide/platforms/wp8/index.md' + Download: `/docs/zh/edge/guide/platforms/wp8/plugin.md' + Download: `/docs/zh/edge/guide/appdev/privacy/index.md' + Download: `/docs/zh/edge/guide/appdev/whitelist/index.md' + Download: `/docs/zh/edge/guide/hybrid/plugins/index.md' + Download: `/docs/zh/edge/guide/hybrid/webviews/index.md' + Download: `/docs/zh/edge/index.md' + Download: `/docs/zh/edge/config_ref/index.md' + Download: `/docs/zh/edge/plugin_ref/spec.md' + Download: `/docs/zh/edge/plugin_ref/plugman.md' - echo "About to fix crowdin errors with resulting files" + About to fix crowdin errors with resulting files - find /home/<username>/git/cordova-docs/docs -name \*.md -exec sed -i "s/\* \* \*/---/1" {} \; - 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" + Done with crowdin fix + # On branch master + nothing to commit (working directory clean) + Everything up-to-date + ldeluca@ubuntu:~/git/cordova-docs$ - - cd $GIT_REPO_PATH - git add . - git commit -m 'Synchronization with Crowdin' - git push origin }}} - === Example Script output === After running the github-crowdin.sh script, some common messages might include: {{{ - Warning: Downloaded translations does not match current project configuration. Some of the resulted files will be omitted. - - `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. {{{ - </FONT> - </TD</TR> - <FONT face="Helvetica"> - A communication error occured: "" - </FONT> - </TD></TR> - <TR><TD> - <FONT face="Helvetica"> - The Web Server may be down, too busy, or experiencing other problems preventing it form responding to requests. You may wish to try agian at a later time. - </FONT> }}} - 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:[email protected] + 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:[email protected] __
