Re: Debian Wiki - macro like <> for translated pages?
On Sat, Sep 14, 2019 at 9:42 PM Beatrice Torracca wrote: > Perfect!! and with no work at all to do for translators *bg* I learned to be lazy through automation early on :) > On sabato 14 settembre 2019, at 19:41 +0800, Paul Wise wrote: > > I found that macro.formatter.page.pi['language'] contains the language code. > > That happens when you know what you are doing :) I had no idea beforehand, I just searched the builtin macro code for 'language' and eventually found a function that stores the page info into the pi dictionary. OTOH, I did know Python before doing this :) > Thanks a lot for this. Seems like a small detail maybe, but you made my day. Glad I could help :) -- bye, pabs https://wiki.debian.org/PaulWise
Donation with cryptocurrencies
The reason for the mail is because I love the development and operation of this great project. I would like to give an idea about the donations that can be made, and I think they should integrate the donation system through cryptocurrencies as it is easier and generates a little more security for those interested. They can even add the page to the Brave channel to make it even easier. I do not know if this is the email indicated to send this information or if you can please tell me what it would be? For your attention thanks.
Re: Debian Wiki - macro like <> for translated pages?
On sabato 14 settembre 2019, at 19:41 +0800, Paul Wise wrote: > On Sat, Sep 14, 2019 at 3:28 PM Beatrice Torracca wrote: > Thanks for the API pointer, with that and some grepping in the > codebase I managed to add a few changes to make my proposal work: > > https://salsa.debian.org/debian/wiki.debian.org/commit/80ae82957ae6cd4e19bbeae55e68908bb4971683 > > It is already working on the Italian translation of the DebianReleases > page, it/DebianReleases links to it/DebianBuster but contains > <>. Perfect!! and with no work at all to do for translators *bg* > > I did not find anything on a way to extract the iso-code of the language > > (that does not mean it does not exist). > > I found that macro.formatter.page.pi['language'] contains the language code. That happens when you know what you are doing :) Thanks a lot for this. Seems like a small detail maybe, but you made my day. beatrice
Re: Debian Wiki - macro like <> for translated pages?
On Sat, Sep 14, 2019 at 3:28 PM Beatrice Torracca wrote: > There is a macro in the MoinMoin api to find if a page exist: Thanks for the API pointer, with that and some grepping in the codebase I managed to add a few changes to make my proposal work: https://salsa.debian.org/debian/wiki.debian.org/commit/80ae82957ae6cd4e19bbeae55e68908bb4971683 It is already working on the Italian translation of the DebianReleases page, it/DebianReleases links to it/DebianBuster but contains <>. > I did not find anything on a way to extract the iso-code of the language > (that does not mean it does not exist). I found that macro.formatter.page.pi['language'] contains the language code. -- bye, pabs https://wiki.debian.org/PaulWise
Bug#940227: please provide the policy as one big file
On Sat, 14 Sep 2019, Charles Plessy wrote: > Le Sat, Sep 14, 2019 at 09:13:22AM +, Peter Palfrader a écrit : > > > > https://www.debian.org/doc/debian-policy/ is pretty and all, > > but it's really hard to grep in it since it's split into different files > > for each section. > > > > Please provide a version where everything is in one file. > > Hi Peter, > > please find it at: > > https://www.debian.org/doc/debian-policy/policy.txt > > Links for the different formats: > > https://www.debian.org/doc/devel-manuals#policy > > Have a nice week-end, Thanks. Could this please be linked from https://www.debian.org/doc/debian-policy/ also, as this is the URL google actually has (and I wasn't the only one on IRC who didn't know of or find that text version). Cheers, -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal https://www.palfrader.org/ | `. `' Operating System | `-https://www.debian.org/
Bug#940227: marked as done (please provide the policy as one big file)
Your message dated Sat, 14 Sep 2019 18:46:22 +0900 with message-id <20190914094622.ga2...@bubu.plessy.net> and subject line Re: Bug#940227: please provide the policy as one big file has caused the Debian Bug report #940227, regarding please provide the policy as one big file to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 940227: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940227 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems --- Begin Message --- Package: www.debian.org Severity: wishlist Hi! https://www.debian.org/doc/debian-policy/ is pretty and all, but it's really hard to grep in it since it's split into different files for each section. Please provide a version where everything is in one file. Cheers, weasel -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal https://www.palfrader.org/ | `. `' Operating System | `-https://www.debian.org/ --- End Message --- --- Begin Message --- Le Sat, Sep 14, 2019 at 09:13:22AM +, Peter Palfrader a écrit : > > https://www.debian.org/doc/debian-policy/ is pretty and all, > but it's really hard to grep in it since it's split into different files > for each section. > > Please provide a version where everything is in one file. Hi Peter, please find it at: https://www.debian.org/doc/debian-policy/policy.txt Links for the different formats: https://www.debian.org/doc/devel-manuals#policy Have a nice week-end, Charles -- Charles Plessy Akano, Uruma, Okinawa, Japan--- End Message ---
Bug#940227: please provide the policy as one big file
Package: www.debian.org Severity: wishlist Hi! https://www.debian.org/doc/debian-policy/ is pretty and all, but it's really hard to grep in it since it's split into different files for each section. Please provide a version where everything is in one file. Cheers, weasel -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal https://www.palfrader.org/ | `. `' Operating System | `-https://www.debian.org/
Bug#940226: broken link to source from policy manual
Package: www.debian.org Severity: normal Hey! https://www.debian.org/doc/debian-policy/ has a "Show Source" link to https://www.debian.org/doc/debian-policy/_sources/index.rst.txt which doesn't exist. -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal https://www.palfrader.org/ | `. `' Operating System | `-https://www.debian.org/
Re: Debian Wiki - macro like <> for translated pages?
On sabato 14 settembre 2019, at 07:56 +0800, Paul Wise wrote: > On Sat, Sep 14, 2019 at 12:11 AM Beatrice Torracca wrote: Hi, > > > Is it possible to implement similar macros for the translated pages. > > It should be possible to do that, the options are: > > > Something along the line of <> where NN is > > the language code, at least for those languages which ask for it? > * Add a language parameter: <> > * Use the declared language of the page that is calling the macro when > generating the links. > > Personally I like the last option because it means almost zero work > for translators, they just have to ensure the page language is > declared correctly, which, from a small sample, appears to already be > the case for probably many if not all of the translated pages. Your idea is definitely better than mine > > Would you be interested in working on this? If so, the Python code for > Debian's custom macros is here: > > https://salsa.debian.org/debian/wiki.debian.org/tree/master/var/moin/data/plugin/macro > > If not I can take a look at how to find the current page language and > how to detect if the translated page exists, it should be easy to fix > the code once those are known. Sadly I am no programmer. I have some very rudimentary skills that make me tweak some previous code if it is easy to do. This is way beyond my skills, sadly. But I made some searches... with almost no useful results and probably you know all this already :) ... but in case it might help whomever could work on this these are the results. There is a macro in the MoinMoing api to find if a page exist: https://moinmo.in/MoinAPI/Examples#Page.exists.28.29 I did not find anything on a way to extract the iso-code of the language (that does not mean it does not exist). The only ugly workaround I could think of is to search in the raw content of the page for "# language NN". But since there is the possibility of searching pages on the basis of their language there must be a better way to extract the language. Thanks a lot for the reply, beatrice