Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-29 22:14:08

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

[wiki] Adding new translation to article txp:hide

Hi!

Tried to follow this instruction to create russian version of txp:hide article:

  1. edited english version
  2. in the bottom added [[ru:txp:hide]]
  3. refreshed english page, opened russian empty article
  4. translated it

But – language list at the right side seems to point to one page, i didn’t notecied any difference in all three links. Here is its html:

		<!-- Begin of p-lang stuff -->
			<h3>Translations [<a href="http://textbook.textpattern.net/wiki/index.php?title=Help:Translating_Wiki_Content">?</a>]...</h3>
			<div id="p-lang" class="portlet">
							<ul>
								<li class="interwiki-en"><a href="http://textbook.textpattern.net/wiki/index.php?title=txp:hide">English</a></li>
								<li class="interwiki-ru"><a href="http://textbook.textpattern.net/wiki/index.php?title=txp:hide">Русский</a></li>
								<li class="interwiki-zh-tw"><a href="http://textbook.textpattern.net/wiki/index.php?title=txp:hide">‪中文(台灣)‬</a></li>
							</ul>
			</div><!-- end of p-lang stuff -->
	</div><!-- end of wikilangs -->

Is it normal behaviour? The strangest thing, is that somehow language sometimes switches, when i click this links…


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#2 2009-08-29 22:44:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [wiki] Adding new translation to article txp:hide

Hi Victor, I think I got it working now. I removed the language links to the pages in that language (on an english page you don’t need a link to the english page, etcetera). I guess the problem was that all language links were pointing to page ‘txp:hide’, and pages in different languages can’t have the same title. If you’re going to do more translations: the english page title is just the tag name, without the ‘txp:’. And I’m thinking that it might be better to name translated tag pages something like ‘hide (ru)’, see the french translation of article: http://textbook.textpattern.net/wiki/index.php?title=article_(fr).

I suppose all those chinese links could be removed because none of the translations seem to exist. I’ll investigate that further.

Last edited by els (2009-08-29 22:52:58)

Offline

#3 2009-08-30 07:49:37

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [wiki] Adding new translation to article txp:hide

Oh! I see now. I thought textbook will work like wikipedia, where articles can have the same title. Is it possible to use similiar behoviuor in textbook’s engine?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2009-08-30 17:11:39

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [wiki] Adding new translation to article txp:hide

Wikipedia uses subdomains for languages, so there will be no duplicate URLs: en.wikipedia.org/wiki/Textpattern, ru.wikipedia.org/wiki/Textpattern, etcetera. Textbook doesn’t, and I don’t know if it’s at all possible in the current setup, Destry or Hakjoon may be able to tell us.

It would be nice though.

Offline

#5 2009-09-23 10:42:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [wiki] Adding new translation to article txp:hide

Could somebody please remove an entry named “txp:hide” from the tag reference list?
a) It’s sorted among “T” as in “txp” b) It’s a link to the Russian translation c) We already have a link to “hide” among “H”.

I’d easily do that but haven’t sufficient privileges. Thanks!

Edit: forgotten to link

Last edited by uli (2009-09-23 10:44:27)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2009-09-23 10:50:10

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [wiki] Adding new translation to article txp:hide

Ah, I think I’ve found the/one cause: The page’s name begins with txp, wrongly.
Again, I’ve not sufficient priviliges to even edit that.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2009-09-23 15:16:28

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [wiki] Adding new translation to article txp:hide

I do have sufficient privileges to rename a page (it’s called … umm … “move” in wiki speak), so I did rename it according to the naming convention Destry started with the French txp:article page:
removed the txp prefix and appended a country specific _(ru) suffix, but that suffix doesn’t suffice to remove it from the English tag reference, so it might really be a matter of insufficient privileges.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#8 2009-09-23 16:41:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [wiki] Adding new translation to article txp:hide

Thanks Uli, I took care of it. The tag was there because it was assigned to the wrong category. Apparently ‘move’ in wiki language actually means ‘copy’ or ‘redirect’. So I deleted the original page which still existed.

Still need to sort those other translations…

Last edited by els (2009-09-23 16:44:50)

Offline

#9 2009-09-23 21:03:35

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [wiki] Adding new translation to article txp:hide

Els wrote:

it was assigned to the wrong category.

Now there’s some cyrillic in the footer that’s not been there before, right? Sometime soon you can put another language code badge in your forum sidebar info ;)

Still need to sort those other translations…

Where do you see these? I mean, while I volunteer here, why not do something useful?

Last edited by uli (2009-09-23 21:04:03)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#10 2009-09-23 22:02:13

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [wiki] Adding new translation to article txp:hide

Great! It seems to me that all translated tag pages should be in the same format, and that we should follow the example Destry set: like ‘article_(fr)’. So tonight I started working on the zh-tw tag pages. This language has the most translated tag pages, but there are other languages with just a couple, that also need to be done.

Some languages have a translated Tag Reference page, but these are pages, not a category like the english Tag Reference. The advantage of a category is that all pages assigned to it will automatically be displayed in alphabetical order on the category page. So far I’ve done it like this:

  • copy the introductory text (if any) of the old tag reference page (edit: done, removed link) to a proper category page. (So far, I’ve created the language category pages mentioned below.) If there is no introductory text, you can create a new category page by just entering one or more language links, like this:
<!-- Keep at bottom! -->
[[en:category:Tag Reference]]
[[fr:category:Référence des tags]]
[[hu:category:Tag-ek listája ABC sorrendben]]
[[ru:category:Список тегов]]
[[zh-tw:category:標籤字母索引]]
  • then, working from the old page, I first (at the bottom of the tag page) add the link to the new category page and edit the link to the english tag page.
  • then I move the page to its new name: ‘tag_name_(zh-tw)’.

Once a page is moved, it appears on the new category page.
The old tag pages still exist, but are redirected to the new ones. I don’t think it’s wise to delete the old pages yet, don’t know how often they are used.

What needs to be done when all translated tag pages have been given consistent names, is fixing and adding the language links at the bottom, so that every tag page shows the available translations… but that’s for later ;)

If you really want to help, you can find all existing pages here. Thanks!

Edit: I think I’ve done them all now.

Last edited by els (2009-09-25 12:05:41)

Offline

#11 2009-09-25 00:24:39

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: [wiki] Adding new translation to article txp:hide

you can find all existing pages here

Phew, that’s a haystack, especially as it seems there are many many pages edited re categorizing+redirecting (zh-tw, Taiwan I presume) but still appearing under their old name (i.e. the language code prefixed). That’s quite frustrating to go through all of them from this page. Do you have a list of the pages yet to edit? If not, did you procede schematically enough so it would make sense to start from another page, one that’s sortable, for instance the list of the most busiest textbook editors this month (probably you) and leave out any of the pages mentioned there?

but there are other languages with just a couple

Did you mean pages other than tag pages?

So far I’ve done it like this:

Seems like there’s been a change in the meantime, the quoted link just shows a redirect, nothing that should serve as an example in my current state of mind ;) Anyway, this step is necessary for opening a new tag reference in another language, as far as I understand.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#12 2009-09-25 05:28:51

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [wiki] Adding new translation to article txp:hide

Ouch! Now it’s easier to make translations, thanks :)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB