Translation Help Wanted!!

If you would like to check the status of a language, volunteer to do a translation, or highlight or correct a problem in one of the existing language files then post here.
jason.l
Posts: 4
Joined: Wed Jun 20, 2012 12:52 am

Re: Translation Help Wanted!!

Post by jason.l » Wed Jun 20, 2012 6:41 am

How to check in the translation directly by SVN?

tomkolp
Posts: 3
Joined: Tue Dec 18, 2012 7:01 pm

Re: Translation Help Wanted!!

Post by tomkolp » Sun Dec 30, 2012 1:46 pm

Please help to translate the option v1.25.0

Code: Select all

// So for example, to override the help text for ZM_LANG_DEFAULT do
$OLANG = array(
    'LANG_DEFAULT' => array(
        'Prompt' => "This is a new prompt for this option",
        'Help' => "This is some new help for this option which will be displayed in the popup window when the ? is clicked"
    ),
);

?>
It does not work, instead of the text is empty. In the new version (v1.25.0) in any language are translated Options.

Solved: fix.tar attachment
Attachments
screen01.png
screen01.png (106.18 KiB) Viewed 8711 times
fix.tar
/var/www/html/zm/skins/classic/views/options.php line 214
/var/www/html/zm/skins/classic/views/optionhelp.php line 23
thx napcok
(20 KiB) Downloaded 190 times

ykihipp
Posts: 2
Joined: Fri Jul 12, 2013 4:19 am

Re: Translation Help Wanted!!

Post by ykihipp » Fri Jul 12, 2013 5:17 am

I posted a new thread "Finnish translation" with files at: http://www.zoneminder.com/forums/viewto ... 15&t=21167

User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Re: Translation Help Wanted!!

Post by robi » Thu Aug 15, 2013 9:53 am

Hi guys,

I'm trying to translate the little help box in the timeline window which contains this:
Pass your mouse over the graph to view a snapshot image and event details.

Click on the coloured sections of the graph, or the image, to view the event.

Click on the background to zoom in to a smaller time period based around your click.

Use the controls below to zoom out or navigate back and forward through the time range.
But I can't find the corresponding entry in the language files. Can you point me in the right direction?
v1.25.0 + Ubuntu Linux 12.04 Server

User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Re: Translation Help Wanted!!

Post by robi » Thu Aug 15, 2013 1:52 pm

Also can't find the language translation entry for this:
Warning, deleting a monitor also deletes all events and database entries associated with it.
Are you sure you wish to delete?
v1.25.0 + Ubuntu Linux 12.04 Server

User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Re: Translation Help Wanted!!

Post by robi » Thu Aug 15, 2013 5:00 pm

robi wrote:Hi guys,

I'm trying to translate the little help box in the timeline window which contains this:
Pass your mouse over the graph to view a snapshot image and event details.

Click on the coloured sections of the graph, or the image, to view the event.

Click on the background to zoom in to a smaller time period based around your click.

Use the controls below to zoom out or navigate back and forward through the time range.
But I can't find the corresponding entry in the language files. Can you point me in the right direction?

OK, meanwhile I found where to modify the main PHP code to enable localization of these.

This, plus montage window dropbox items localization enabling patch submitted in the develop branch.
Localized strings for en_GB and hu_HU submitted in the develop branch.

Please test!
v1.25.0 + Ubuntu Linux 12.04 Server

User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Re: Translation Help Wanted!!

Post by robi » Fri Aug 16, 2013 12:50 pm

robi wrote:Also can't find the language translation entry for this:
Warning, deleting a monitor also deletes all events and database entries associated with it.
Are you sure you wish to delete?

I'm trying to edit the console.js script, but I can't make it to take a variable from the language file.
For some reason it keps thorwing back the entire function name.

Tried with double, single quotes etc. doesn't work:


function deleteMonitor( element )
{
if ( confirm( "'<?= $SLANG['OptionRestartWarning'] ?>'" ) )
{
var form = element.form;
form.elements['action'].value = 'delete';
form.submit();
}
}
v1.25.0 + Ubuntu Linux 12.04 Server

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests