sottwell
Documentation Team

Posts: 8,137
|
 |
« Reply #45 on: May 03, 2006, 05:01 AM » |
|
Here's a Dutch translation of the language file: <?php
/** * Filename: assets/snippets/newslisting/lang/dutch.inc.php * Function: Dutch language file for NewsListing. * Author: The MODx Project * Date: 2006/04/09 * Version: 6.4.1 * MODx version: 0.9.5 * Translated: 2006/05/01 by Carolien Fijt */
// NOTE: New language keys should added at the bottom of this page
$_lang['file_does_not_exist'] = "Bestaat niet. Check het bestand.";
$_lang['default_template'] = ' <div class="nl_summaryPost"> <h3><a href="[~[+id+]~]">[+title+]</a></h3> <div>[+summary+]</div> <p>[+link+]</p> <div style="text-align:right;">door <strong>[+author+]</strong> op [+date+]</div> </div> ';
$_lang['blank_tpl'] = "Uw sjabloon voor NewsListing is leeg of u heeft een typefout gemaakt in de chunk naam, check alstublieft";
$_lang['missing_placeholders_tpl'] = 'Uw NewsListing sjabloon mist placeholders, check hieronder uw sjabloon: <br /><br /><hr /><br /><br />';
$_lang['missing_placeholders_tpl_2'] = '<br /><br /><hr /><br />';
$_lang['default_splitter'] = "<!-- splitter -->";
$_lang['more_text'] = "Meer hierover...";
$_lang['no_entries'] = '<p>Geen ingangen gevonden.</p>';
$_lang['date_format'] = "%d-%b-%y %H:%M";
$_lang['older_items'] = "Oudere Items";
$_lang['prev'] = "< Vorige";
$_lang['next'] = "Volgende >";
$_lang['button_splitter'] = "|";
$_lang['default_copyright'] = "[(site_name)] 2006";
$_lang['rss_lang'] = "en";
$_lang['api_method'] = "Gebruikt de API Methode (gaat akkoord met alles, behalve pub_date, unpub_date, editedon, deletedon, and multilevel) <br />";
$_lang['GetAllSubDocs_method'] = "Gebruikt de GetAllSubDocs Methode (gaat akkoord voor alle mogelijkheden, maar is een beetje langzamer) <br />";
$_lang['debug_summarized'] = "Nummer dat samengevat moet worden (nrposts/count):";
$_lang['debug_returned'] = "<br />Totaal aantal dat geretourneerd moet zijn:";
$_lang['debug_retrieved_from_db'] = "Totaaltelling in db:";
$_lang['debug_sort_by'] = "Sorteer op (sortby):";
$_lang['debug_sort_dir'] = "Sorteer richting (sortdir):";
$_lang['debug_start_at'] = "Start bij";
$_lang['debug_stop_at'] = "en stop bij";
$_lang['debug_out_of'] = "zonder";
$_lang['debug_document_data'] = "Document Data for"; ?>
|
|
|
|
|
Logged
|
|
|
|
Mats Wall
Member
 
Posts: 54
On leave.
|
 |
« Reply #46 on: May 03, 2006, 06:54 AM » |
|
...and here's a Swedish translation of the language file for NewsListing snippet.  The only thing pending is the exact meaning of the penultimate clause [debug_out_of] . 'Out of' can have at least six different meanings in the target language, so for the sake of clarity it would be good if someone could just put the phrase in context, please. <?php
/** * Filename: assets/snippets/newslisting/lang/swedish.inc.php * Function: Swedish language file for NewsListing. * Author: The MODx Project * Date: 2006/04/09 * Version: 6.4.1 * MODx version: 0.9.5 * Translated: 2006/05/03 by Mats Wall */
// NOTE: New language keys should added at the bottom of this page
$_lang['file_does_not_exist'] = " existerar inte. Kontrollera filen.";
$_lang['default_template'] = ' <div class="nl_summaryPost"> <h3><a href="[~[+id+]~]">[+title+]</a></h3> <div>[+summary+]</div> <p>[+link+]</p> <div style="text-align:right;">av <strong>[+author+]</strong> den [+date+]</div> </div> ';
$_lang['blank_tpl'] = "Mallen för NewsListing är tom, eller också är namnet på kodstycket felstavat. Var vänlig kontrollera.";
$_lang['missing_placeholders_tpl'] = 'Mallen för NewsListing saknar platshållare. Kontrollera mallen här nedan: <br /><br /><hr /><br /><br />';
$_lang['missing_placeholders_tpl_2'] = '<br /><br /><hr /><br />';
$_lang['default_splitter'] = "<!-- splitter -->";
$_lang['more_text'] = "Läs mer...";
$_lang['no_entries'] = '<p>Hittade inga poster.</p>';
$_lang['date_format'] = "%d %b %Y %H:%M";
$_lang['older_items'] = "Tidigare poster";
$_lang['prev'] = "< Föregående";
$_lang['next'] = "Nästa >";
$_lang['button_splitter'] = "|";
$_lang['default_copyright'] = "[(site_name)] 2006";
$_lang['rss_lang'] = "en";
$_lang['api_method'] = "Använder metoden API (tar med allt utom pub_date, unpub_date, editedon, deletedon, och multilevel) <br />";
$_lang['GetAllSubDocs_method'] = "Använder metoden GetAllSubDocs (tar med allt som är möjligt men är något långsammare) <br />";
$_lang['debug_summarized'] = "Antal som ska summeras (nrposts/count):";
$_lang['debug_returned'] = "<br />Totalt antal som ska returneras:";
$_lang['debug_retrieved_from_db'] = "Totalt räknade i db:";
$_lang['debug_sort_by'] = "Sortera efter (sortby):";
$_lang['debug_sort_dir'] = "Sorteringsording (sortdir):";
$_lang['debug_start_at'] = "Börja vid";
$_lang['debug_stop_at'] = "och sluta vid";
$_lang['debug_out_of'] = "utav";
$_lang['debug_document_data'] = "Dokumentdata för"; ?>
|
|
|
|
|
Logged
|
|
|
|
yentsun
MODx Russia
Moderators

Posts: 514
|
 |
« Reply #47 on: May 03, 2006, 09:46 AM » |
|
AT LAST!! I found the reason for that "Cannot redeclare" thingy. Again it is CHUNKS  Call me stupido but I use chunks widely and put into them this and that. For example: I have about 6 templates, which are mostly identical except for couple of strings. I put the top part of the code into the {{TOP}} and the code after non-identical part into {{BOTTOM}} chunk. Finally I have 6 templates of the following kind: {{TOP}} ...non-identical strings of code... {{BOTTOM}} so when you need to change something you have no need to change all of 6 templates - just the {{TOP}} {{BOTTOM}} chunks. (Don't know...maybe there's another way on opimizing my case). Now here comes the first bug - when your head tags are in a chunk - meta keywords won't work! And for the latest case. I have a TV that represents the content of my left column wich can be different for each page. The values are like this: News=={{news_list}}||Advertisement=={{ad_list}}||Events=={{event_list}} In my {{news_list}} chunk I'm calling [!NewsListing!]. Alas, this is causing the "Cannot redeclare customsort thing" until the page is cached. When I call NL directly in the template - everything is just fine. A more strange thing this is server-dependent. I would miss my dearest chunks if I had to get rid of them *sob* Updated: I have no words. It just started to work normally. NO errors. Great.
|
|
|
|
« Last Edit: May 03, 2006, 04:19 PM by yentsun »
|
Logged
|
|
|
|
Mark
Moderator

Posts: 3,247
Ditto Developer
|
 |
« Reply #48 on: May 03, 2006, 06:42 PM » |
|
Glad it started working normally! I'm also wondering if it's possible to use Newslisting to create a summary list of all pages written by a particular author? So that I can have an author home page that lists all articles written by that author.
And is it possible to assign multiple categories to articles and then have Newslisting type summary list based on a specific category?
Again, in Textpattern (sorry to go on about this, but still getting my head around modX) it is simply a case of typing <txp:article_custom category="photos" offset="0" limit="2" listform="excerptlist" /> or <txp:article_custom author="John" offset="0" limit="2" listform="excerptlist" /> inside a template and an article list by category or author is created.
Cheers
mark j
Are you referring to the way it was done in the MODx blog?
|
|
|
|
|
Logged
|
|
|
|
yentsun
MODx Russia
Moderators

Posts: 514
|
 |
« Reply #49 on: May 03, 2006, 06:52 PM » |
|
2Mark: yeah me happy too. You've done a great work with this snippet! Guess you should rename it into something more global, not just 'NewsListing' but 'Output' or 'List'  Thanks and Cheers
|
|
|
|
|
Logged
|
|
|
|
Mark
Moderator

Posts: 3,247
Ditto Developer
|
 |
« Reply #50 on: May 03, 2006, 07:32 PM » |
|
Lets just say we've got the perfect name for it. I'm finishing up the logo and whatnot for it so it can be unveiled soon.
|
|
|
|
|
Logged
|
|
|
|
rthrash
Foundation

Posts: 9,269
|
 |
« Reply #51 on: May 03, 2006, 10:40 PM » |
|
Indeed... 0.9.5 will bring lots of newly revised (e.g., totally re-factored and simpler) names for functional code bits that are more appropriate titles for their multi-purpose capabilities. After all you can use Newslisting for far more things than just posting news articles and blogs... 
|
|
|
|
|
Logged
|
MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
|
|
|
|
Pixel Stuff
|
 |
« Reply #52 on: May 03, 2006, 11:30 PM » |
|
Preparing an icon. Must be some fancy stuff coming up.
I don't want to start an avalanch of leaks, but since the crumbs were dropped, can we expect 0.9.5 before the end of June or are we talking more like by the end of Summer?
|
|
|
|
|
Logged
|
|
|
|
rthrash
Foundation

Posts: 9,269
|
 |
« Reply #53 on: May 03, 2006, 11:37 PM » |
|
Before the end of May sound better?
|
|
|
|
|
Logged
|
MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
|
|
|
davidm
Marketing & Design Team

Posts: 6,651
The best way to predict the future is to invent it
|
 |
« Reply #54 on: May 04, 2006, 02:31 AM » |
|
Lets just say we've got the perfect name for it. I'm finishing up the logo and whatnot for it so it can be unveiled soon. Eager to discover that Mark !!! After all you can use Newslisting for far more things than just posting news articles and blogs...  Like for instance doing a company directory  I just love NewsListing !
|
|
|
|
|
Logged
|
|
|
|
Mats Wall
Member
 
Posts: 54
On leave.
|
 |
« Reply #55 on: May 04, 2006, 02:55 AM » |
|
...and here's a Swedish translation of the language file for NewsListing snippet.  The only thing pending is the exact meaning of the penultimate clause [debug_out_of] . 'Out of' can have at least six different meanings in the target language, so for the sake of clarity it would be good if someone could just put the phrase in context, please. Anyone...?
|
|
|
|
|
Logged
|
|
|
|
mjarecki
Jr. Member

Posts: 35
|
 |
« Reply #56 on: May 04, 2006, 03:14 AM » |
|
Are you referring to the way it was done in the MODx blog?
That is exactly what I'm trying to work out. What are you typing in your document/chunks/templates etc. to get the list to render like this - by author that is? Also, is it possible to filter lists by a comma delimited list of words in a TV? For example, if I have a TV with a series of category names such as photography, humour, travel in it on a document, I'd like to then have an index page that has all documents with the word (category) photography in category TV listed. Is this possible and how to go about this? I get the feeling that &filter and &filtertype may be able to do something like this. however the documentation doesn't seem to explicitly show what to type to use and call these options. Thanks mark j
|
|
|
|
|
Logged
|
|
|
|
Guillaume
Moderators

Posts: 711
The future is built today.
|
 |
« Reply #57 on: May 05, 2006, 12:09 PM » |
|
Hi Mark ! All is right  I would like to format date differently for document (summarized) and archive. Could you make it possible for the next released ? Thanks for all !
|
|
|
|
|
Logged
|
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
|
|
|
Mark
Moderator

Posts: 3,247
Ditto Developer
|
 |
« Reply #58 on: May 05, 2006, 02:03 PM » |
|
Guillaume, use this parameter: @mjarecki : The author pages are simply another MODx folder (specific to that author) with another NewsListing call. Currently there is no way to do categories in the manner you suggest but that is definiately on the horizon. Could add that to the NewsListing bug/feature tracker so I don't forget about it again? (David mentioned it a long time ago...) Also, if you use comma spaced lists for TV's and are setting up a site to use that filter code once its finished, make sure that you use no spaces! PHP will have a headache if you do a, b, c instead of a,b,c.
|
|
|
|
|
Logged
|
|
|
|
Guillaume
Moderators

Posts: 711
The future is built today.
|
 |
« Reply #59 on: May 05, 2006, 04:38 PM » |
|
Thanks Mark  I should not have been very clear. I would like format date for document like "Wednesday 25 december 2005" and for archive like "25/12/2005". I call one time the snippet to generate the list of documents and the archive. You can see a real example here.
|
|
|
|
|
Logged
|
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
|
|
|
|