[sword-devel] What am I doing wrong - Sword API, Perl?
scribe777@gmail.com
scribe at crosswire.org
Sat Jul 9 01:08:36 MST 2011
Well, what did you think the 'convertToOSIS' method would do to a VerseKey? :)
Not sure the binding language you're using's syntax, but try something like $scope->getRangeText();
Peter von Kaehne <refdoc at gmx.net> wrote:
>What I want is to take an OSIS ref - say Matt.1.1 - and create a long
>reference in a target language other than English - say
>
><reference osisRef="Matt.1.1">متا 1:1</reference>
>
>What I am doing is:
>
>Sword::LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("fa");
>my $scope= new Sword::VerseKey;
>$scope->setText("Matt.1.1");
>
>print Sword::VerseKey::convertToOSIS("Matt.1.1", $scope);
>
>What I get currently is:
>
><reference osisRef="Matt.1.1">Matt.1.1</reference>
>
>What am I doing wrong?
>
>Thanks!
>
>Peter
>
>
>_______________________________________________
>sword-devel mailing list: sword-devel at crosswire.org
>http://www.crosswire.org/mailman/listinfo/sword-devel
>Instructions to unsubscribe/change your settings at above page
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
More information about the sword-devel
mailing list