My nightmare of a FAQ move/upgrade...

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

glue
Posts: 29
Joined: Fri Oct 29, 2004 2:45 pm

Post by glue »

I've think about it a little bit...

I think the best would be to let the admin sort all the languages in the database settings.

How would it work?
Then... when a user enters the faq, display the record in:
  • the user default language if a translation of the record in this language exists,
  • else, parse the sorted list until you find an existing translation for that record and use it
Display the existing categories lists in the same manner (in the user language if it is available or parse the list sorted by the admin).

Why so?
A global default language setting would not be enough. Consider a faq written in english by the admin, then a german user ads a record in german ; this new record will not be available in the global default language (at least for a while) but should still be viewable by users.

If that german record is also translated in french, what to display?
Let's consider that the faq has the following list sorted by admin: "english, chinese, french, german, ..." So my answer is, french for french user, german for german one, and for other users, as there are no english and no chinese versions, use the french one.

Display suggestion:
For now, a record that is available in several languages is displayed several times. This makes the faq harder to navigate, especialy when many languages are available.
I suggest to display each record id only once in the language suggested above, but followed by the list of available languages in brackets with links to the translations. See the example below for a record available in french and english (same id), with english as top sorted language:
Sample with current version wrote:
  • My question in english [en]
  • Ma question en français [fr]
Suggested display wrote:For french users... (with en linking to "My question in english")
  • Ma question en français [fr] [en]
For english and all other users... (with fr linking to "Ma question en français")
  • My question in english [en] [fr]
Hope this helps and is not too long... :oops:
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this is really a nice idea. But this will be a major change, that's something for 1.5.+ and 1.6. I hope, you can live with that until the next releases.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
glue
Posts: 29
Joined: Fri Oct 29, 2004 2:45 pm

Post by glue »

I'm happy that you like it. And yes, of course I can wait to see it coded, the important point is that phpmyfaq gets better in the long run :-)

Just one more thing, you didn't answer on the "save category in several languages" point... I didn't manage to do it. I edited it from the "Category Adminstration" pages, using the rename tool. When I tried it, it just moved the category from a language to another, and it was no longer available on the previous language pages :-( Is there another way to edit category?
glue
Posts: 29
Joined: Fri Oct 29, 2004 2:45 pm

Post by glue »

I upgraded my faq to version 1.5.3 and I still encounter the same problem about categories...
Thorsten wrote:
glue wrote:1) How can one set a category in several languages? If I have a record in several languages, I wish the parents categories to share the same languages too in order to have the record displayed in the category lists of those languages.
Take e.g. a English category, edit it and save it as French with the French title and it should work.
I tried that and it only moved the category from a language to another, it didn't create a second name in the new language for the same category. Any idea what's going on ?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I'll take a look at it!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply