Author |
Topic |
|
dagdaesp
Starting Member
Spain
7 Posts |
Posted - 04 Sep 2015 : 00:50:29
|
The problem is : the movie has two languages,using the script only lets add one language.
thank you
|
Edited by - dagdaesp on 04 Sep 2015 00:51:03 |
|
JDommi
Administrator
Germany
4656 Posts |
Posted - 04 Sep 2015 : 01:04:36
|
Well, which script... which movie... |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
dagdaesp
Starting Member
Spain
7 Posts |
Posted - 04 Sep 2015 : 03:26:22
|
the script is done for me. When I finished the script I want to give it to anyone to use it. i write code.
#LANGUAGE# #STRING#=#30#= #STARTREADWEB# #FINDLINE#=>language<#11##ONERROR#=*OK* #IF# #11#==#00# #GOTO#=SALTARLANGUAJE #ENDIF# #READNEXTLINE# #FIND#=>#01##ONERROR#=*OK* #FIND#=<br#02##ONERROR#=*OK* #IF# #02#<>#00# #RESETCURSOR# #PUT#=1#04# #GOTO#=MASIDIOMAS #ENDIF# #RESETCURSOR# #FIND#=</td#02##ONERROR#=*ASK* #TAKEWORD#=#06#,#01#,#02# #CHECKVARIABLE#=#06# #STARTDELETETAGS# #CHECKVARIABLE#=#06# #STARTSUBSTITUTETAGS# #STRING#=#30#=#06# #TAKELANGUAGE#=#30# #GOTO#=SALTARLANGUAJE :MASIDIOMAS
#FIND#=>#01##ONERROR#=*ASK* #FIND#=<br#02##ONERROR#=*OK* #IF# #02#==#00# #FIND#=</td#02##ONERROR#=*ASK* #PUT#=0#04# #ENDIF# #TAKEWORD#=#06#,#01#,#02# #CHECKVARIABLE#=#06# #STARTDELETETAGS# #CHECKVARIABLE#=#06# #STARTSUBSTITUTETAGS# #STRING#=#30#=#06# #TAKELANGUAGE#=#30# #IF# #04#==#00# #GOTO#=SALTARLANGUAJE #ENDIF# #GOTO#=MASIDIOMAS :SALTARLANGUAJE #PUT#=0#00# #ENDLANGUAGE#
The language one is english the other is czech and the field always takes the last language.
the same code but with the country here work fine. i can put two or more countrys.
#COUNTRY# #STARTREADWEB# #FINDLINE#=>Location<#11##ONERROR#=*OK* #IF# #11#==#00# #GOTO#=SALTARPAIS #ENDIF# #READNEXTLINE# #FIND#=>#02##ONERROR#=*ASK* #FIND#=<#03##ONERROR#=*ASK* #TAKEWORD#=#25#,#02#,#03# #FIND#=<br#02##ONERROR#=*OK* #IF# #02#==#00# #CHECKVARIABLE#=#25# #STARTSUBSTITUTETAGS# #STARTDELETETAGS# #TAKECOUNTRY#=#25# #GOTO#=SALTARPAIS #ENDIF# #TAKECOUNTRY#=#25# :maspaises #FIND#=>#02##ONERROR#=*OK* #FIND#=<#03##ONERROR#=*OK* #IF# #03#==#00# #GOTO#=SALTARPAIS #ENDIF# #TAKEWORD#=#25#,#02#,#03# #CHECKVARIABLE#=#25# #STARTSUBSTITUTETAGS# #STARTDELETETAGS# #TAKECOUNTRY#=#25# #GOTO#=maspaises :SALTARPAIS #PUT#=0#00# #ENDCOUNTRY#
thank you
|
Edited by - dagdaesp on 04 Sep 2015 03:30:46 |
|
|
JDommi
Administrator
Germany
4656 Posts |
Posted - 04 Sep 2015 : 11:22:37
|
The command #TAKELANGUAGE# takes really only one string and doesn't add a second one. So you have to do it your own. Try to use #STRING#=#30#=#30# #06# instead of #STRING#=#30#=#06# and put the #TAKELANGUAGE#=#30# at the end of the loop. That should do the job. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
dagdaesp
Starting Member
Spain
7 Posts |
Posted - 04 Sep 2015 : 11:50:38
|
thank you by you answer. |
|
|
|
Topic |
|