Quantcast
Channel: GSAK Forum
Viewing all articles
Browse latest Browse all 75058

Experimental Cache Translation macro by lignumaqua - 2013-07-22

$
0
0
This is a first beta release of a cache translation macro. It leverages the Google translation service to translate the Description and Hints fields of a cache from any language to any other.

Select the cache you want to translate and run the macro, you will get this form:

user posted image

Options:

1. 'From' and 'To' are the languages you wish to translate from and to.
Note: You can choose 'auto' for 'From' in many cases and Google will try and figure it out.

2. 'Keep HTML' - If checked, the translation will endeavor to try and keep any HTML formatting.
Note: This sometimes breaks the translation, and often breaks the 'Auto' language detection. If you want to try this I recommend setting the 'From' language explicitly.

3. 'Update Cache Fields' - The translations of Short Description, Long Description, and Hints will replace the corresponding fields in GSAK. This allows them to be sent to the GPS as usual.

user posted image
user posted image

user posted image
user posted image



4. 'Add to User Note' - The translated fields are appended to the User Note. This allows them to be exported to a log or other fields on the GPS using special tags.

5. 'Get Translations' - Parse and make translations of the Description and Hints fields. When a translation is made, both the original contents and the translated versions of the Short Description, Long Description, and Hints fields are saved in new custom variables.

Once a translation of a cache has been requested using 'Get Translations', if the macro is run again against the same cache then the two buttons at the bottom of the form will be enabled:

user posted image


6. 'Copy Translations to Cache' - The translations of Short Description, Long Description, and Hints from the stored data in the custom field will overwrite the corresponding fields in GSAK.

7. 'Replace Original Data' - The original versions of Short Description, Long Description, and Hints from the stored data in the custom field will be replaced in the corresponding fields in GSAK.

These two buttons allow you to switch back and forth from translated text to the original text without having to get a new translation or GPX file each time.


Known issues:

a. At the moment this is one cache at a time. If/when we get the bugs out and are happy with it, I'll look at making it capable of running against a filter. Please do not do so at the moment. It needs timing and quotas adding so as not to exceed Google's limits.

b. It may fail on very long or very complex cache descriptions. blink.gif Disabling the 'Keep HTML' option may help in this case.

c. You may get a time-out error window from the VBS script. Just try again... rolleyes.gif


Updated - Please scroll down

Viewing all articles
Browse latest Browse all 75058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>