Commit Graph

15453 Commits

Author SHA1 Message Date
Neil Lalonde
e265d8af5d Merge pull request #3590 from gschlager/phpbb3-importer
Lots of improvements to the phpBB3 importer
2015-07-16 10:35:13 -04:00
Arpit Jalan
fc977771a3 Update Translations 2015-07-16 19:18:02 +05:30
Gerhard Schlager
1cb45861c5 FEATURE: Lots of improvements to the phpBB3 importer
- Extensive refactoring of the existing importer
- Configuration of import with settings.yml instead of editing code
- Supports importing from phpBB 3.0.x and 3.1.x
- Imports all attachments (not just the ones embedded with [attachment])
  from posts and private messages
- Imports all existing attachments without the need to configure allowed
  file extensions or file sizes
- Imports polls
- Imports bookmarks
- Imports sticky topics and (global) announcements as pinned topics
- Imports categories in the original order and sets the content of the
  category description topic
- Sets the creation date of category description topics to the creation
  date of the first topic in each category
- Imports additional user attributes: last seen date, registration
  IP address, website, date of birth, location
- Optionally set the user's name to its username
- Users that didn't activate their account in phpBB3 are imported as
  inactive users
- All imported, active users are automatically approved
- Users that were deactivated in phpBB3 get suspended for 200 years
  during the import
- Anonymous user can be imported as suspended users instead of the
  system user
- Forums of type "link" are not imported as categories anymore
- Internal links to posts get rewritten during the import (previously
  only links to topics got rewritten)
- Ordered lists with BBCode [list=a] (which are unsupported in
  Discourse) get imported as if they would be [list=1]
- Importing of avatars, attachments, private messages, polls and
  bookmarks can be disabled via configuration file
- Optional fixing of private messages for forums that have been upgraded
  from phpBB2 prevents the import of duplicate messages and tries to
  group related messages into topics
- Table prefix (default: phpbb) is configurable
- Most of phpBB's default smilies are mapped to Emojis and all other
  smilies get uploaded and embedded as images. Smiley mappings can be
  added or overridden in the settings.yml file.
2015-07-16 15:28:43 +02:00
Gerhard Schlager
2dd01c61b0 Improves the base importer
- Move some methods into their own classes in order to make it easier
  to reuse them outside of classes extending the base importer. For
  compatibility reasons the old methods are still in the base importer
  and delegate to the new objects. The following methods and hashes were
  extracted:
    - all the lookup maps for existing and imported data
    - all the methods used for uploads and attachments
- No need to store failed users and groups. This information wasn't
  used anyway.
- Print progress instead of category names when importing categories.
- Allow importers to override if bbcode_to_md should be used (until now
  it always used ARGV)
- Allow importers to add additional site settings that automatically get
  restored after the importer finishes.
- Show how many posts and messages are imported per minute. This should
  help detecting when the import is slowing down and needs to be
  restarted.
- Use max_image_width and max_image_height from settings instead of
  hard-coded values for uploaded images.
2015-07-16 15:28:42 +02:00
Sam
7f43653cad Merge pull request #3608 from Qasem-h/Rtl
Rtl Fix For Customize Toggles & Dashboard
2015-07-16 17:18:22 +10:00
Sam
35e1b52d54 remove 0 view filter 2015-07-16 16:57:55 +10:00
Sam
88578f74d0 another subst 2015-07-16 16:24:46 +10:00
Sam
e449bf531c more post cleanup rules 2015-07-16 16:23:14 +10:00
Sam
5db345705b allow views to be specified in import mode 2015-07-16 16:11:20 +10:00
Sam
bfd28ca9a9 ignore deleted ... too much trouble 2015-07-16 15:11:28 +10:00
Sam
16e69d16b8 add like import capabilities 2015-07-16 15:11:28 +10:00
Sam
3a60d96573 Merge pull request #3611 from riking/change-owner
FIX: Allow to change ownership on deleted users' posts
2015-07-16 08:41:28 +10:00
Kane York
61ea8c6f72 FIX: Allow to change ownership on deleted users' posts 2015-07-15 15:29:35 -07:00
Régis Hanol
c17f8d1769 keep pretty_text in sync with client code 2015-07-16 00:01:00 +02:00
Kane York
e3b778a23a fixup: support merging N languages (js) 2015-07-15 14:30:16 -07:00
Kane York
15905be788 Disable in development (js) 2015-07-15 14:25:24 -07:00
Kane York
cb395662d0 Add JsLocaleHelper tests for i18n fallback 2015-07-15 14:23:41 -07:00
Régis Hanol
80bf7bed21 this obviously doesn't work :( 2015-07-15 23:15:58 +02:00
Régis Hanol
ea16797761 FIX: user avatar in oneboxes/quotes when using CDN 2015-07-15 23:00:11 +02:00
Régis Hanol
25a1bf421e FIX: use CDN for user avatars (take 2) 2015-07-15 19:24:23 +02:00
Kane York
ff219bc65c todo: write test 2015-07-15 10:21:06 -07:00
Kane York
650eb86a74 Disable in development (server) 2015-07-15 10:17:36 -07:00
Kane York
ecfa17b5a7 FEATURE: Localization fallbacks (server-side)
The FallbackLocaleList object tells I18n::Backend::Fallbacks what order the
languages should be attempted in. Because of the translate_accelerator patch,
the SiteSetting.default_locale is *not* guaranteed to be fully loaded after the
server starts, so a call to ensure_loaded! is added after the locale is set for
the current user.

The declarations of config.i18n.fallbacks = true in the environment files were
actually garbage, because the I18n.default_locale was
SiteSetting.default_locale, so there was nothing to fall back to. *derp*
2015-07-15 10:17:36 -07:00
Kane York
728845d008 FEATURE: Localization fallbacks (client)
This patch sets I18n.defaultLocale in the Discourse.start() script block (it
was formerly always 'en') to SiteSetting.default_locale, and patches
translate() to perform fallback to defaultLocale followed by english.
Additionally, when enable_verbose_localization() is called, no fallbacks will
be performed.

It also memoizes the file loading operations in JsLocaleHelper and strips out
translations from the fallbacks that are also present in a prefered language,
to minimize file size.
2015-07-15 10:17:28 -07:00
Régis Hanol
23dadfc06e Merge pull request #3610 from riking/patch-3
Fix test failure (appEvents seems to not be injected?)
2015-07-15 19:16:45 +02:00
Kane York
b201697938 Fix test failure (appEvents seems to not be injected?) 2015-07-15 10:15:05 -07:00
Robin Ward
1851c8d918 Merge pull request #3599 from riking/patch-3
Add ace:resize app event
2015-07-15 12:54:11 -04:00
Kane York
2302442e1a Add ace:resize app event
For discourse-data-explorer
2015-07-15 09:44:08 -07:00
Régis Hanol
0eb69398b9 Revert "FIX: use CDN for user avatars"
This reverts commit 8109bd85c0.
2015-07-15 18:00:29 +02:00
Régis Hanol
8109bd85c0 FIX: use CDN for user avatars 2015-07-15 17:27:51 +02:00
Robin Ward
4a7bf67778 Typos 2015-07-15 11:18:01 -04:00
Robin Ward
f647174c95 Add acceptance test for full page search 2015-07-15 11:17:04 -04:00
Régis Hanol
b0802abae2 FIX: crop & optimize user background profile/card images 2015-07-15 17:15:43 +02:00
Qasem Hajizadeh
af688a13ea Rtl Fix For Customize Toggles & Dashboard 2015-07-15 15:18:20 +04:30
Sam
00aaa692ac Merge pull request #3574 from gschlager/patch-2
FIX: Remove invalid translation keys from polls plugin
2015-07-15 16:53:37 +10:00
Sam
fe009ea926 Merge pull request #3595 from cpradio/printer-friendly
UX: Add printer-friendly.scss to make short topics print nicely.
2015-07-15 16:50:38 +10:00
Arpit Jalan
7a1694f1ac FEATURE: add more data in user list export 2015-07-15 11:38:48 +05:30
Sam
e53842529d Merge pull request #3606 from riking/patch-5
FIX: Allow changing ownership of posts with deleted users
2015-07-15 15:56:47 +10:00
Sam
e0eb7f0016 Improve lithuim importer
- grab unique id for each post
- clean up html quotes and lines with nbsp
2015-07-15 15:34:25 +10:00
Sam
b772d96f7a FEATURE: permalink normalization
Optionally allow admins to apply regex based normalization
to permalinks prior to matching.

This allows us to drop query string, or cleanly ignore slugs, etc.
2015-07-15 15:34:25 +10:00
Kane York
8796760825 FIX: Allow changing ownership of posts with deleted users 2015-07-14 21:15:34 -07:00
Sam
d20324ece8 Merge pull request #3605 from riking/patch-6
FEATURE: Automatically copy the share link if possible
2015-07-15 13:41:34 +10:00
Kane York
2cbb1610a1 FEATURE: Automatically copy the share link 2015-07-14 19:53:02 -07:00
Jeff Atwood
b6d1f5aee2 Merge pull request #3604 from awesomerobot/master
switching bullet-badges to flexbox to solve alignment
2015-07-14 18:35:27 -07:00
awesomerobot
792a12349b switching bullet-badges to flexbox to solve alignment 2015-07-14 21:29:05 -04:00
Neil Lalonde
249ef75f12 FIX: when rate limited on login attempts, show a meaningful message instead of unknown error. 2015-07-14 18:17:39 -04:00
Robin Ward
cc2a33617f Refactor likes/flags to simplify things a lot 2015-07-14 15:50:27 -04:00
Robin Ward
5f3c381dc2 Only include information in actions_summary when we need it. 2015-07-14 15:12:00 -04:00
Robin Ward
8a9fa3e5bf FIX: Error reloading dev due to conditional require 2015-07-14 14:52:35 -04:00
Robin Ward
fcfcda099f Component tests for like button 2015-07-14 14:46:46 -04:00