Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'translation'

Viewing 25 results - 326 through 350 (of 965 total)
  • Author
    Search Results
  • #133499
    Pippin Williamson
    Participant

    Please see the documentation for Using bbPress in Your Language to see how you can supply your own files: https://codex.bbpress.org/bbpress-in-your-language/

    #133486
    gam6itko
    Participant

    When Russian translation will be approved? I want to translate all phases. But i afraid what it will be never approved.

    #132915
    Robin W
    Moderator

    Converting a Snitz access database forum to BBpress

    This documents how I transferred from a website using Snitz and an access database to a new site with BBress using Mysql.

    This briefing assumes knowledge of
    • FTP programmes and uploading/downloading files
    • A way to access your wordpress database eg myphpadmin
    • A way to see your access database

    Introduction

    BBpress has a conversion tool that lets you import data from several other forum packages. However two things are needed for this to work.
    1. The data in a MySQL database format
    2. A convertor programme that understands the structure of the source (in this case Snitz) forum.

    If you already have a MySQL verison of Snitz (Snitz supports Access, MS SQL, and MySQL), then you’ll still need to fix the date, and run a specific Snitz converter, but don’t need the upload to MySql in step 2.

    Plan

    The plan therefore is to
    1. Fix date format (it is different between the two forums)
    2. Convert the data to sql format
    3. Run a snitz converter
    4. Run repair to fix the links

    Execution

    I can only describe how I achieved this, I suspect there are lots of ways, but this one worked.

    I had an access database on site x with hosting company a, and needed to transfer to a Mysql database on site y with hosting company b (basically I was taking over running someone else’s website management)

    Step 1 fixing the data format

    Snitz stores dates in the format yyyymmddhhmmss
    BBpress stores dates in the format yyyy-mm-dd hh:mm:ss

    You can fix this
    • before you transfer the data to sql,
    • after you have transferred it
    • or during conversion,

    this will depend on where you knowledge lies. But you will need to fix it. If you don’t fix this, all the entries you import will show as posted 2014 years ago (basically year 0)

    I converted before transferring to sql, as I an old and used to working with flat files! If you are more capable in sql, you could no doubt write a small programme to change the data format after you’ve uploaded to sql, and if more capable in php you could do it within the converter programme (see later)

    The Snitz database has two tables with dates in that need changing. These are :

    FORUM_TOPICS
    FORUM_REPLY

    This is how they showed in my Snitz database, but the prefix may be different with yours.

    In FORUM_TOPICS you need to change
    T_DATE
    T_LAST_POST

    In FORUM_REPLY you need to change
    T_REPLY

    I downloaded the access database from the old site to my PC. I then exported the two tables to an excel spreadsheet (in Access go to external data, and look for export to Excel. You’ll need to have created a blank spreadsheet with the name you want to use first) and ran the formula

    =CONCATENATE(MID(N2,1,4),"-",MID(N2,5,2),"-",MID(N2,7,2)," “,MID(N2,9,2),":",MID(N2,11,2),":",MID(N2,13,2))

    Where column N contained the old date.

    I then prefixed the original heading with OLD (eg heading T_DATE became OLDT_DATE) and headed the new column with the heading of the old one (eg T_DATE). I did this to a) preserve the original columns just in case, and b) to use for the clean slug in the conversion (see later).

    I then deleted the old table in access, and imported the two excel ones back into Access (as before external data, then import).

    I then had the same access database, but with the correct date formulas and a couple of extra columns with the old date format in them.

    Step 2 – Convert access database to MySql database

    The first thing you’ll need is a MySql database to upload to.

    You can use the one you presumably already have with WordPress/BBpress. However you’ll just need to check that none of the names co-incide. Since my Snitz database used capitals (I don’t know if they all Snitz databases do), and BBpress uses lower case, I suspect that there is no risk in doing this, but one for you to consider.

    I took the safety of creating a fresh blank database (my hosting package allows the creation of databases and manages them through phpMyadmin).
    There are numerous programmes on the web that do access to Mysql conversion, but for no particular reason I chose Bullzip http://www.bullzip.com/.

    However this needs a 32bit ODBC driver to work, so unless you already have Mysql on your local PC, you’ll need to download the driver from http://www.mysql.com/downloads/connector/odbc/ – choose the 32 bit one.

    Once installed it is a doddle to do the conversion.
    You’ll need :
    The access database on your pc
    The host address of your MySql database
    The database name
    The username
    The password.

    Run the wizard, and it’ll upload in minutes.

    Finally if you’re going to do the date conversion discussed in Step 1 at this stage, now’s the time to do it.

    Step 3 – Importing/converting the data

    This is easy once you’ve got your head around it, but initially it can be very frustrating.

    In essence you need to translate what one forum calls something to what the other needs.

    For Snitz, I used the following translation

    
    Forum section FORUM_FORUM forum
    Forum id	FORUM_ID	_bbp_forum_id
    Forum parent id	CAT_ID	_bbp_parent_id
    Forum title	F_SUBJECT	post_title
    Forum Slug  (see note 1)	FORUM_ID	post_name
    Forum description	F_DESCRIPTION	post_content
    Forum Display Order	F_ORDER	Menu_order
    Forum Date Update		Post_date
    		
    Topic section	FORUM_TOPICS	topic
    Topic id	TOPIC_ID	_bbp_topic_id
    Forum id 	FORUM_ID	_bbp_forum_id
    Topic author	T_AUTHOR	post_author
    Topic title	T_SUBJECT	post_title
    Topic Slug (see note 1)	T_DATE	post_name
    Forum id (if no parent 0) 	FORUM_ID	post_parent
    Topic date update 	T_DATE	post_date
    	T_DATE	post_date_gmt
    	T_LAST_POST_DATE	post_modified
    	T_LAST_POST_DATE	post_modified_gmt
    		
    Tags section		
    Ignored		
    		
    		
    Post section	FORUM_REPLY	reply
    Post id	REPLY_ID	_bbp_post_id
    Forum id	FORUM_ID	_bbp_forum_id
    Topic  id	TOPIC_ID	_bbp_topic_id
    Author ip	R_IP	_bbp_author_ip
    Post author	R_AUTHOR	post_author
    Topic slug	R_DATE	post_name
    Post Content	R_MESSAGE	post_content
    Topic id	TOPIC_ID	post_parent
    Topic date	R_DATE	post_date
    		
    User Section	FORUM_MEMBERS	user
    Store old user id	MEMBER_ID	_bbp_user_id
    	M_NAME	user_login
    	M_PASSWORD	_bbp_password
    	M_EMAIL	user_email
    	M_HOMEPAGE	user_url
    	M_AIM	aim
    	M_YAHOO	yim
    		
    

    [NOTE if you copy this and post in a word doc, you should be able to get a nice tabbed table]
    Note 1

    I used OLDR_DATE & OLDT_DATE from the step 1 as my clean slugs. A slug is what BBpress uses for a URL to reference a post. It needs to be clean – ie not have formatting, odd characters like spaces etc. in it. I did debate using the topic ID, but was unsure if this was unique for BBpress – it may well be fine. So I used the references above as I was pretty sure that with our forum being not that busy, that no two people would have posted in the same second. If you choose to use some other field, such as topic ID, you’ll need to change the field in the converter document – see below.

    This is then used against the example converter that BBpress supplies.

    Whilst initially looking daunting, this is fairly easy to change to get it to work.

    Step 3.1 Creating a Snitz.php

    Firstly go to your site. Using FTP go to web/wp-content/plugins/bbpress/includes/admin/converters and locate example.php. FTP this to your PC and using an editor (notepad ++ is good – download it from http://notepad-plus-plus.org/) you need to change the default “froms” to those above

    But first save it locally as “snitz.php”, and change the first couple of lines to read

    
    /**
     * Implementation of snitz converter.
     */
    class snitz extends BBP_Converter_Base
    

    If you don’t do this, the converter won’t recognise it.

    Then you need to work through each of the lines of code changing the “default” source database tables and names to the correct ones.

    So looking at you new snitz.php, you’ll see for instance the first conversion is :

    
    // Forum id. Stored in postmeta.
    $this->field_map[] = array(
    'from_tablename' => 'forum', 'from_fieldname' => 'forumid',
    'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_id'
    

    So to get this to work for Snitz you need to change the source table from ‘forum’ to “FORUM_FORUM” and the from field needs changing from ‘forumd’ to’ _bbp_forum_id’

    Making the lines now read :

    
    // Forum id. Stored in postmeta.
    $this->field_map[] = array(
    'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'FORUM_ID',
    'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_id'
    

    Using the translation table above you work through each of the lines, doing the substitution.

    I commented out the tags section, as I couldn’t see that Snitz had tags. I also commented out the “
    Store old user salt” and “User password verify class” sections as passwords won’t come across – see later on this.

    CRITICALLY I also added the following as the example doesn’t had a bit that brings the actual topic content across !

    
    // Topic content.
    		// Note: We join the posts table because topics do not have content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'FORUM_TOPICS',
    			'from_fieldname'  => 'T_MESSAGE',
    			'join_tablename'  => 'thread',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (threadid) WHERE post.parentid = 0',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    

    Once all that is done, save the file locally.

    Then using FTP upload it to the same directory that example came from
    Viz : web/wp-content/plugins/bbpress/includes/admin/converters
    Now you’re ready to run the conversion!

    You’ll need the following info
    Database server (localhost if your using you local Mysql database)
    Database name
    Database User
    Database password

    Then in Dashboard, go to tools>forums>import forums

    Select “snitz” from the converter list, and fill in the database info from above.

    Click to select users, presuming that you want to bring these across.

    Then click start, and sit back and watch. If you’ve got everything right, you’ll see a steady stream of lines such as “converting topics 1-100”

    If Fails :

    If it falls over, then you’ll need to work out which part of the snitz converter it doesn’t like (it’ll give you a line number). Usually you’ve got punctuations wrong, or called something by a wrong name. Remember snitz (in my case anyway) uses capitals, and bbpress needs lowercase, so ensure that’s all ok.

    If nothing comes through (it usually says “starting conversion…conversion complete”), then you have got the connection wrong, as it’s not finding the database and tables.

    If Success :

    Then you’ll need to repair the links (Dashboard>tools>forums>repair forums). Otherwise in my case the forum listings came through, but with no topics listed against them.

    Do as the tool suggests – I ran several at the same time, and wrote most of this document whilst waiting !

    Finally – users

    If you successfully imported your users, they’ll have accounts, but their passwords won’t work – Bbpress can’t bring these across.

    The easiest way is to tell them to click “lost password” and enter their email address and then they can reset their own.

    And that’s how it’s done !

    #132603
    Hesam
    Participant

    Thanks dear Stephen. It’s my pleasure to translate such wonderful plugin.

    I tried https://make.wordpress.org/polyglots/ but it didn’t work. Here’s my post permalink:

    How to upload my translation

    !!

    #132536
    Daniel.Haugen
    Participant

    Using define(‘WPLANG’, ‘nb_NO’); in /wp-config.php
    /wp-content/languages/nb-NO.mo
    /wp-content/languages/nb_NO.po
    /wp-content/languages/bbpress/bbpress-nb_NO.mo
    /wp-content/languages/bbpress/bbpress-nb_NO.po

    It looks like ‘most’ of what strings have been translated is working correctly.

    Where did you fetch the translation from?

    #132427
    Daniel.Haugen
    Participant

    Hi, I’ve searched around the web for some hours now and hopefully I’ll get the correct answer from you.

    I need to translate the plugin bbPress into Norwegian, I’ve fetched the translation from http://translate.wordpress.org/projects/bbpress/dev/nb/default and made sure every string is there with the .po editing software Poedit. I’ve downloaded both .po and .mo file for the Norwegian translation.

    Norwegian is activated generally as WordPress language already.

    So the problem is the localization and naming of the files, I’ve tried different directories and names:
    wp-content/languages/bbpress-nb_NO.po and .mo
    wp-content/languages/bbpress-nb.po and .mo
    wp-content/languages/bbPress/bbpress-nb_NO.po and .mo
    wp-content/languages/bbPress/bbpress-nb.po and .mo
    wp-content/plugins/bbPress/languages/bbpress-nb_NO.po and .mo
    wp-content/plugins/bbPress/languages/bbpress-nb.po and .mo
    wp-content/plugins/bbPress/languages/bbpress-langauge-nb_NO.po and .mo
    wp-content/plugins/bbPress/languages/bbpress-langauge-nb.po and .mo
    wp-content/plugins/bbPress/languages/bbpress-plugin-nb.po and .mo
    wp-content/plugins/bbPress/languages/bbpress-plugin-nb_NO.po and .mo

    None of them seems to work, what is the correct localization and naming?

    #132417
    Stephen Edgar
    Keymaster

    Your best option will be to post the same as above on https://make.wordpress.org/polyglots/

    They will setup the correct entries for uploading your Persian translations to GlotPress https://translate.wordpress.org/projects/bbpress/dev

    Make sure you include the language locale eg. ‘fa’ Persian or ‘fa-af’ Persian (Afghanistan)

    #132397
    felixpage
    Participant

    Merci beaucoup!

    #132260

    In reply to: Changing Strings

    Stephen Edgar
    Keymaster

    Take a look at this thread on creating your own language/translation files for bbPress.

    Language file isn't working

    #131356

    In reply to: Translation problem

    Stephen Edgar
    Keymaster

    @blancdememoire See this https://bbpress.org/forums/topic/trouble-with-po-and-mo-files/#post-127814

    You will need to follow the contact link there and ask the French Translations team when are they going to validate the waiting translations on ‘glotpress’.

    #131355

    In reply to: Translation problem

    blancdememoire
    Participant

    Hi I have a problem still and I followed the steps of uploading the bbpress-fr_FR.po and bbpress-fr_FR.mo of the latest version with changed names to content/languages/bbpress but it still doesn’t work. It’s driving me nuts ! Help would be appreciated.

    Thank you for your attention

    – Simon

    #131354

    In reply to: Translation problem

    blancdememoire
    Participant

    Hi I have a problem still and I followed the steps of uploading the bbpress-fr_FR.po and bbpress-fr_FR.mo of the latest version with changed names to content/languages/bbpress but it still doesn’t work. It’s driving me nuts ! Help would be appreciated.

    Thank you for your attention
    – Simon

    #130919
    Stephen Edgar
    Keymaster

    FAQ – https://codex.bbpress.org/bbpress-in-your-language/

    The following shows the current progress of bbPress translation to French for the ‘dev’ & ‘2.2.x’ versions:

    https://translate.wordpress.org/projects/bbpress/dev
    11% – 111 Translated – 879 Untranslated – 628 Waiting

    https://translate.wordpress.org/projects/bbpress/2.2.x
    % – 0 Translated – 952 Untranslated – 533 Waiting

    So quite a few are done but needs an authorised ‘validator’ to approve the ‘waiting’ translations.

    You can contact your local translation time via https://fr.wordpress.org/contact/ to find out who the bbPress validators are or if no luck request to become a validator yourself via https://make.wordpress.org/polyglots/

    #130882
    Oazar
    Participant

    All my fault !

    I mispelled the mo and po files names, now everything works fine !

    the proper files names should be : bbpress-fr_FR.po ans bbpress-fr_FR.mo for French translations.

    there are no po and mo files completed for French language in the depository, you need to do them yourself from the pot file that comes with bbpress plugin.
    I am in a hurry, so I just translated part of it (it is very long !), what appears on the website but not the admin part yet.
    No way to upload it easily in this forum, but I’ll be back once the translation is completed and will give a link to get it.

    bye

    #130726
    Oazar
    Participant

    it seems to me that in fact, the po and Mo files are not translations and we need to edit them ourselves for the French language;
    I am at it just now, will let you know if this works…
    if you think I am wrong and wasting my time, please say so !

    #130344

    In reply to: Date format in spanish

    LChambers
    Participant

    The function get_post_time is disable for translation. You can use a filter, example

    add_filter ( ‘get_post_time’, ‘new_date’, 10, 3);

    function new_date ($time, $d = ‘U’, $gmt = false) {
    $translate = true;
    $time = mysql2date($d, $time, $translate);
    return $time;
    }

    Un saludo 😉

    #128245
    magnuswp
    Participant

    Hi,

    I’m having some troubles to customize bbpress to my specific theme.
    I really don’t have the time to figure it out all by myself.

    Therefore I’m willing to pay a person here on this forum to help customize it to my website.

    Thinks to be done:
    – Main forum page does not show.
    – Translation to Swedish (You don’t need to speak swedish only know how to copy the language file from wordpress into bbpress.)
    – And a few other things. More info if interested.

    So do you have the experience to fix this for me? Send me a message and we can discuss the deal.

    #127814
    Stephen Edgar
    Keymaster

    Just follow the steps in the document https://codex.bbpress.org/bbpress-in-your-language/

    Set `define (‘WPLANG’, ‘fr_FR’);` in your WordPress `wp-config.php`

    Download the .po & .mo files

    Rename the files

    • bbpress-plugin-fr-fr.po to bbpress-fr_FR.po
    • bbpress-plugin-fr-fr.mo to bbpress-fr_FR.mo

    Upload both files to `/wp-content/languages/bbpress/ `

    I would suggest you use the following page to ask if anyone in the French WordPress community has fully translated bbPress as the translations linked above are 0% & 11% https://fr.wordpress.org/contact/

    If you are trying to translate the theme DynamiX or ‘codestyling localization’ plugin then they are issues with their respective authors.

    #126886

    In reply to: Polish Translation

    Stephen Edgar
    Keymaster

    This is fixed in the upcoming bbPress 2.3, you can download and test it from here

    bbPress 2.3 Beta 2

    #126848

    In reply to: Polish Translation

    Hoek
    Participant

    Some people has got problem with translation. Everyone puts files in the right place with correct filename but translation doesn’t show all polish translation, some words still are in english even they are translated on file, what to do?

    #126843
    Stephen Edgar
    Keymaster

    Congrats, the site looks good and looks like you finished the bbPress Arabic translations 🙂

    #126842
    Stephen Edgar
    Keymaster

    The instructions are here: https://codex.bbpress.org/bbpress-in-your-language/

    That said I cannot see any Greek (el) translations for bbPress in GlotPress for the 2.2 or 2.3(dev) branches of bbPress https://translate.wordpress.org/projects/bbpress

    I suggest you try asking some of the Greek WordPress communities listed here:
    https://codex.wordpress.org/WordPress_in_Your_Language#Greek_.28el.29

    In particular on their forum http://wpmania.gr/forum/
    (You could also ask when they are planning on switching to bbPress ;))

    #126839
    noetron
    Participant

    Have you uploaded the Greek files? could you send me a link to the files?

    thanks

    #126791
    Stephen Edgar
    Keymaster

    See this page in the docs for instructions https://codex.bbpress.org/bbpress-in-your-language/

    #126762
    maziqpl
    Participant

    Hello,

    I have problem. I download polish language for BBpress (pl_PL.mo). Where I must put this file and where I can change language from english to polish?

    I make this scenarios:
    – upload .mo file to wp-content/language/bbpress – not working
    – upload .mo file to wp-content/plugins/bbpress/language – not working

    Can someone help me ?

Viewing 25 results - 326 through 350 (of 965 total)
Skip to toolbar