From mboxrd@z Thu Jan 1 00:00:00 1970 From: ummeegge To: development@lists.ipfire.org Subject: Re: 'resolv' => 'Resolv-Retry', = Obsolete? Date: Mon, 06 Feb 2017 16:26:51 +0100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1980929473496596009==" List-Id: --===============1980929473496596009== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Matthias, the first and important one, i made some more stuff on that script (forgot to= delete the unused polish strings) and have added also a check after deletion= if strings could not be deleted. Now it takes a only little longer :-)=3D) b= ut it might be also a little more user-friendly=E2=80=A6 Updated script can be found in here --> https://raw.githubusercontent.com/umm= eegge/scripts/master/langsCleaner.sh . >=20 > Absolutely: Thanks! Woah! >=20 > Funny script comments - you don't need some manager or agent? ;-) your welcome, fun makes live sometimes a little friendlier :-) and sure i nee= d one, what agency can you manage ;D ... > In the meantime I've found that 'chpasswd.cgi', 'conf.cgi', 'status'cgi' > and 'calls.cgi' (the latter three are from 'asterisk') work with > "$tr{'". In these files I found strings like this one: >=20 > ... > if ($cgiparams{'SUBMIT'} eq $tr{'advproxy chgwebpwd change password'}) > ... >=20 > No Lang::tr{' but $tr{' Yes true there are some older versions in the CGIs but this should be no prob= lem in that manner here for the script i think. As a beneath one i have fixed the chpasswd.cgi longer time ago --> http://git= .ipfire.org/?p=3Dpeople/ummeegge/ipfire-2.x.git;a=3Dcommit;h=3D3418f9c38931c8= ebd23aa619ed2fccfc16c71d40 which has been also checked by a user in the forum= --> http://forum.ipfire.org/viewtopic.php?t=3D14148 , but it seems to be for= gotten=E2=80=A6 > I see. Perhaps we could just change entries with '/', to avoid problems > in the future. I'll look at it during the next days. Not sure about that, cause this appears to be problematic only for my fast hu= mble script (and the deletion via sed cause "?" or "|" do not work) . > Thanks again, I'll take some test runs here and write back. O.K. . > Funny, what just ONE obsolete string can start... Indeed. Greetings, Erik Am 05.02.2017 um 20:33 schrieb Matthias Fischer : > On 05.02.2017 19:10, ummeegge wrote: >> Hi Matthias, >=20 > Hi, >=20 > ... > [Lots of stuff to find and delete the unused translation strings] > ... >=20 > Absolutely: Thanks! Woah! >=20 > Funny script comments - you don't need some manager or agent? ;-) >=20 >> ... >> an update-lang-cache is included in the script. Have tested it a little in= the WUI and haven=C2=B4t found currently some problems without all that entr= ies... >=20 > In the meantime I've found that 'chpasswd.cgi', 'conf.cgi', 'status'cgi' > and 'calls.cgi' (the latter three are from 'asterisk') work with > "$tr{'". In these files I found strings like this one: >=20 > ... > if ($cgiparams{'SUBMIT'} eq $tr{'advproxy chgwebpwd change password'}) > ... >=20 > No Lang::tr{' but $tr{' >=20 >> ... >>=20 >> Me too but this one --> https://github.com/ummeegge/scripts/blob/master/la= ngsCleaner.sh needed about 25 Minutes here to compare, sort them out and dele= te them for each language. Possibly you will get an "sed: -e expression #1, c= har 15: unterminated `s' command" for each language, this is because an entry= which includes "/" , i think this one --> "'ls_free/swan' =3D> 'VPN:'," is r= esponsible for that, haven=C2=B4t found in the fast a better way to solve tha= t ;-). >=20 > I see. Perhaps we could just change entries with '/', to avoid problems > in the future. I'll look at it during the next days. >=20 >> If you want to go for a checkout, i might be better to backup you existing= language files for a testing round. >=20 > No problem, a testmachine with Core 10X is always in reach. >=20 >> Possibly the script is way to overdosed but may it helps. >=20 > If it works, its ok for this. ;-) >=20 > Thanks again, I'll take some test runs here and write back. >=20 > Funny, what just ONE obsolete string can start... >=20 > Best, > Matthias >=20 --===============1980929473496596009== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KQ29tbWVudDogR1BHVG9vbHMgLSBodHRwczov L2dwZ3Rvb2xzLm9yZwoKaVFJY0JBRUJDZ0FHQlFKWW1KWENBQW9KRUlQaWh4WDVKOGpuQ0JnUUFP SDBLdU5qOXdUaVhjUWJOQTFKTzNFWAo0eDliMjRIUFNOUHJ4QXhXcFg2NzFpO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