Skip to content

Commit 8d97672

Browse files
committed
try more translation hints
1 parent 6af38d4 commit 8d97672

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build/templates/example.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div translate="no" class="threejs_example_container notranslate">
2-
<div><iframe class="threejs_example" style="{{width}} {{height}}" src="/threejs/resources/editor.html?url={{{examplePath}}}{{{encodedUrl}}}{{{params}}}"></iframe></div>
2+
<div><iframe class="threejs_example notranslate" translate="no" style="{{width}} {{height}}" src="/threejs/resources/editor.html?url={{{examplePath}}}{{{encodedUrl}}}{{{params}}}"></iframe></div>
33
<a class="threejs_center" href="{{{examplePath}}}{{{url}}}" target="_blank">{{{caption}}}</a>
44
</div>
55

threejs/lessons/resources/lesson.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,8 @@ $(document).ready(function($){
361361
window.prettyPrint();
362362
}
363363
$('span[class=com]')
364-
.replaceWith(function() {
365-
return $('<span class="com notranslate" translate="yes">' + this.innerHTML + '</span>');
366-
});
364+
.addClass('translate yestranslate')
365+
.attr('translate', 'yes');
367366

368367
const params = getQueryParams();
369368
if (params.doubleSpace || params.doublespace) {

0 commit comments

Comments
 (0)